Re: Objective-C Question
Re: Objective-C Question
- Subject: Re: Objective-C Question
- From: Michael Schmidt <email@hidden>
- Date: Sun, 21 Sep 2003 01:06:12 +0200
- Organization: AbsInt GmbH
On Thu, 18 Sep 2003 13:34:30 -0700
Jeff Galyan <email@hidden> wrote:
>
- *what* makes ObjC "better" than C++? Please try to answer objectively,
>
avoiding semi-religious fervor. I already understand that most of you
>
seriously dig ObjC.
C++ contains tons of features and extensions for many things. Each of these
features is usefull and it looks reasonable to have it in the language. The
problem lies in the combination of these features. There are to many!
Objective C is reduced to the basic things needed for object orientated
development. The language is simpler.
A small cite from Peter van der Linden's "Expert C Programming":
| "C++ will do for C what Algol-68 did for Algol" - David L. Jones
The footnote explains:
| "Algol-68 was a monster-sized language that built on the small and
| successful Algol-60. It was hard to understand (it had a formal
| specification written in denotational semantics), hard to implement,
| and hard to use. But it was 'very powerful' or so everyone said. Algol-68
| effectively killed Algol-60 by replacing it, before self-destructing in
| a wave of impracticality. Some people see parallels between the two Algols
| and the two C's."
>
- *why* do those features make ObjC "better" than C++? (for example, why
>
should I care about dynamic typing?
That is the problem of C++: you *shouldn't* care about it. You should design
your application instead.
>
Isn't defining a message parameter or return type as "id" the same as a
>
method/ function parameter/return typed as "void *"?
No! The first is the type for objects, the second a pointer type. That are
two different kind of things. You shouldn't care about the fact, that 'id'
is implemented as a pointer type.
>
[...]
--
Michael Schmidt
_______________________________________________
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.