• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Several questions on Objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Several questions on Objective C
      • From: Ondra Cada <email@hidden>
    • Re: Several questions on Objective C
      • From: Andrew Pinski <email@hidden>
References: 
 >Re: Several questions on Objective C (From: Michael Gersten <email@hidden>)

  • Prev by Date: Re: Retrieving "default" defaults after registerDefaults?
  • Next by Date: Re: Several questions on Objective C
  • Previous by thread: Re: Several questions on Objective C
  • Next by thread: Re: Several questions on Objective C
  • Index(es):
    • Date
    • Thread