Re: Implicit overloads, non static
- From: "Chad Z. Hower aka Kudzu" <cpub@xxxxxxxxx>
- Date: Fri, 6 May 2005 01:12:29 +0300
Jon Skeet [C# MVP] <skeet@xxxxxxxxx> wrote in
news:MPG.1ce47713d0c5316398c09b@xxxxxxxxxxxxxxxxxxxx:
> I don't believe there's any way to do this, and frankly I'm glad -
I have mixed feeling on it. In VB (ack!) it certainly caused a lot of
issues, but that was because VB never handled objects properly.
But the fact that VS already includes support for implicits, etc I think it
might be a good extension but havent fully thought out all the consequences
yet. At this point I just wanted to confirm that it does not exist, so I
can proceed with what I have.
> things like the above would make your code *very* unintuitive, IMO.
> Heck, even implicit conversions are bad enough in that respect, without
> further abuse...
Anything can make your code uninintuitive, especially when abused. In fact
if I want unintuitive code I can go to C++ (or just putz around with C#'s C
style for loop, a never ending source of careless bugs). :) But implicit
operators do not themselves make code unintuitive - the user does. Implicit
operators are a *very* important feature of C# IMO and have proven
incredibly useful in practice.
Operator overloads can make a mess in the wrong hands too. But Id much
rather have the scalpel that C# is, than a chain saw. C# is very nice in
that *most* of it is implemented in "itself" rather than compiler magic,
although a lot of that remains too.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
.
- Follow-Ups:
- Re: Implicit overloads, non static
- From: Jon Skeet [C# MVP]
- Re: Implicit overloads, non static
- References:
- Implicit overloads, non static
- From: Chad Z. Hower aka Kudzu
- Re: Implicit overloads, non static
- From: Jon Skeet [C# MVP]
- Implicit overloads, non static
- Prev by Date: Re: Implicit overloads, non static
- Next by Date: how to discover GMT (Time Zone) currently configured
- Previous by thread: Re: Implicit overloads, non static
- Next by thread: Re: Implicit overloads, non static
- Index(es):
Relevant Pages
|
Loading