Re: How to use generics?
- From: atlaste <atlaste@xxxxxxxxx>
- Date: 11 May 2007 00:44:38 -0700
On Thu, 10 May 2007 02:01:37 -0700, Moty Michaely <Moty...@xxxxxxxxx>...
wrote:
I have used multiple inheritance, I can imagine what it's like, and I am
happy to not have it in C#. Likewise, I've been writing C++ for much
longer than "a couple of years", and nowhere near "half the code" I write
has MI. In fact, I stopped using it altogether when I get sick and tired
of the headaches it caused (see above and Christof's post regarding base
classes being inherited multiple ways). The implication in the latter
quote above is that I haven't been writing "proper" C++ code; at best, the
statement is tautological, and at worst it's insulting to me and anyone
else who uses C++ without multiple inheritance.
I never said that those who are not using MI aren't writing proper c+
+. what I meant was that the MI feature was dropped to help developers
avoid the headhaces you mentioned.
[...]
Actually I have. And don't get me wrong, but I find it just as
insulting that having a preference towards MI is wrong just because
some people get headaches using it. MI is more or less regarded "bad
design" (by some people) because it's difficult to maintain for some
developers, thereby insulting the work I've done over the last I don't
know how many years. I get headaches because I have to wrap code in
interfaces while I know it can be solved by introducing an idiom and
because I know that all those stupid interfaces and proxies that do
nothing besides being an interface or proxy are bad to maintain.
Statements like "over my dead body" from friend Anders himself only
contribute to that.
I think it should also be noted as well that the world is not this
black or white. People like Moty and me would like to see a solution
to a number of design / implementation problems. The tool that used to
solve these issue is MI. That's familiar and therefore that's
referred. Perhaps star-like constructions shouldn't be implemented at
all. Perhaps a new idiom is a better solution. I don't care how the
problems that arise from the lack of MI are solved; as a consumer I
merely want a proper solution.
Cheers,
Stefan.
.
- Follow-Ups:
- Re: How to use generics?
- From: Peter Duniho
- Re: How to use generics?
- References:
- How to use generics?
- From: Martin
- Re: How to use generics?
- From: Jon Skeet [C# MVP]
- Re: How to use generics?
- From: Mark Rae
- Re: How to use generics?
- From: Jon Skeet [C# MVP]
- Re: How to use generics?
- From: Mark Rae
- Re: How to use generics?
- From: Nicholas Paldino [.NET/C# MVP]
- Re: How to use generics?
- From: Chris Mullins [MVP]
- Re: How to use generics?
- From: Nicholas Paldino [.NET/C# MVP]
- Re: How to use generics?
- From: Chris Mullins [MVP]
- Re: How to use generics?
- From: Jon Skeet [C# MVP]
- Re: How to use generics?
- From: atlaste
- Re: How to use generics?
- From: Moty Michaely
- Re: How to use generics?
- From: Peter Duniho
- Re: How to use generics?
- From: Moty Michaely
- How to use generics?
- Prev by Date: Re: Nhibernate
- Next by Date: Re: Problem with creating classes as runtime - PLEASE HELP
- Previous by thread: Re: How to use generics?
- Next by thread: Re: How to use generics?
- Index(es):
Relevant Pages
|