[OT] Re: noob
[OT] Re: noob
- Subject: [OT] Re: noob
- From: Alastair Houghton <email@hidden>
- Date: Thu, 20 Dec 2007 14:22:40 +0000
On 20 Dec 2007, at 11:58, Peter Mulholland wrote:
3. If you want, learn C++. C++ can be useful sometimes, and many Mac
developers use it extensively in their apps. But make no mistake; C
++
is an unpleasantly complicated language that isn't even understood by
most of its practitioners. While it is undeniably powerful and
sometimes very useful, I would be inclined to avoid it where
possible.
I've a feeling what you really mean here is that the STL is
unpleasantly complicated. However, using C++ does not mean that you
have to use the STL.
No, I mean C++ itself is unpleasantly complicated.
There are all sorts of examples; the whole "typename" thing, the fact
that pointer casts in C++ may result in a pointer with a different
value (unlike in C, where the value would always be the same), the
behaviour of virtual member functions when called at construction
time, the complicated rules on overloading... the list goes on and on.
I know in practice it's possible most of the time to remain ignorant
of the complications (though you may well inadvertently write buggy
code, even in a "basic" C++ program, particularly in view of the
virtual function call at construction time behaviour), but that isn't
always the case (which is why list members periodically end up
explaining "typename" to people, for example).
Personally, I find C++ preferable to ObjC's strange mutated syntax.
I won't get into the debate on the dot versus bracket syntax, other
than to say that I think a lot of people who say that do so because
they're used to dot syntax and think that Objective syntax "looks
funny" (as, indeed, it is supposed to).
Anyway, this is in danger of heading off topic, if it hasn't already
done so.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >noob (From: draper jones <email@hidden>) |
| >Re: noob (From: Alastair Houghton <email@hidden>) |
| >Re[2]: noob (From: Peter Mulholland <email@hidden>) |