Re: Why the need for the id type?
Re: Why the need for the id type?
- Subject: Re: Why the need for the id type?
- From: email@hidden
- Date: Tue, 19 Jun 2007 15:09:05 +0200
On 2007-06-19, at 01:18, Wagner Truppel wrote:
I think my question boils down to this: I'm trying to understand
why Obj-C was designed the way it was. It may be simply a matter of
historical accident. At the time Obj-C was created, java wasn't
around. Had it been, perhaps Obj-C would have been designed
differently, without id. That's the essence of my question, that
is, is id really a necessary entity on its own or could things be
done with a root class instead. My impression is that they could.
You know - many things are not _necessary_ but can still be
_helpful_. Many things could have been designed _differently_, which
doesn't imply _better_. IMHO id and the higher level concepts/
implementations built around it fit into this category. And (again
IMHO) the best way to understand it is to jump into writing some Obj-
C code beyond helloworld. You may get surprised how many things are
just easier / more natural in Obj-C (because it _hasn't_ been
designed differently) than in Java and (especially) C++
Regards,
P.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden