• 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: Why the need for the id type?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Why the need for the id type?
      • From: email@hidden
References: 
 >Why the need for the id type? (From: Wagner Truppel <email@hidden>)
 >Re: Why the need for the id type? (From: mmalc Crawford <email@hidden>)
 >Re: Why the need for the id type? (From: Wagner Truppel <email@hidden>)
 >Re: Why the need for the id type? (From: Greg Titus <email@hidden>)
 >Re: Why the need for the id type? (From: Wagner Truppel <email@hidden>)
 >Re: Why the need for the id type? (From: Greg Titus <email@hidden>)
 >Re: Why the need for the id type? (From: Wagner Truppel <email@hidden>)

  • Prev by Date: Re: pb with awakeFromNib
  • Next by Date: Re: Why the need for the id type?
  • Previous by thread: Re: Why the need for the id type?
  • Next by thread: Re: Why the need for the id type?
  • Index(es):
    • Date
    • Thread