Re: Several questions on Objective C
Re: Several questions on Objective C
- Subject: Re: Several questions on Objective C
- From: "Erik M. Buck" <email@hidden>
- Date: Sun, 7 Apr 2002 15:44:24 -0500
>
p.s. Operator overloading is the one saving grace of C++. Think quadratic
roots. Think matrix/vector math.
It just goes to show that different people with different needs and
experience have different opinions. I think operator overloading is one of
the worst features of C++. It eliminates the need for an obfuscated C++
contest because there is never any way to know what a piece of code will do
without intimately knowing every source module and the operator precedence
rules and be able to guess how C++ promotes types.
On top of all that, C++ is inconsistent. You can overload the "->" operator
but not the "." operator.
SomeClass *someObject = new SomeClass;
someObject->FuBar(); can do something other than the expected because -> is
overloaded.
(*someClass).FuBar(); will do something different!
Don't even get started with template meta-programming and type promotion
rules with templates and template ambiguity, etc.
Is there yet a single compiler that completely conforms to the ANSI C++
standard ? If not, why not ? (after all these years)
I program in C++ daily, but I don't have to like it. IMHO C++ is the worst
language yet conceived. It is slightly worse than PL-I and repeats almost
all of PL-I's mistakes.
"The C++ Programming Language" by Bjarne Stroustrup -> The explanation
"The Design and Evolution of C++" by Bjarne Stroustrup -> The apology.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.