• 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 Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why Obj-C


  • Subject: Re: why Obj-C
  • From: "David W. Halliday" <email@hidden>
  • Date: Tue, 09 Apr 2002 20:35:49 -0500
  • Organization: TNRCC

Matthew Johnson wrote:

> "Erik M. Buck" wrote:
>
> > From: "Matthew Johnson" <email@hidden>
> > > ...
> > >
> > > Writing for the Mac for the first time (I am a solaris programmer (C/C++))
> > I thought I would try cocoa to write a one
> > > off application for my company. Personally I have found this was a very
> > large mistake. If I every have to write another
> >
> > To each his own. Cocoa is partly an aesthetic choice. Many people
> > including me find Cocoa vastly more productive than alternatives.
> >
>
> you'll have to prise my C compiler from my cold dead hands ;)

I/We don't have to---it's all there in the Objective-C compiler. :-)

> >
> > > one off Mac application I think it will be in Carbon.
> > >
> > > Can someone tell me what is it about Obj-C that makes the syntax for
> > class's and methods have to look like it does? why
> > > "[" instead of "(".
> >
> > 1) Because Objective-C mixes Smalltalk and C
> > 2) Because Brad Cox liked []
> > 3) Because () is already overused and can be confused for a function call.
> > Messages are very different from function calls.
> > 4) Because () is ambiguous in some cases even in C++
> >
>
> for me the "["'s suck. my kingdom for a makeObjCLikeC preprocessor ;)
>
> I wish they made methods look like C functions. Less smalltalk more C.

Actually, after Apple acquired NeXT there was a time there when they were very seriously contemplating providing a
"modern syntax" (the C++/C/Java like syntax you now crave, though /I/ certainly wouldn't call it "modern"). However, after
it was pointed out to them that this would preclude the mixing of Objective-C and C++ (so called Objective-C++), due to
syntax collision, this effort was abandoned. (The only reason Java can access Cocoa classes using it's own syntax is that
Java's object model is so much closer to that of Objective-C than is C++'s).

> ...
>
> Apologies for venting in public :)

'S'al'ight. :-)

> Matt
> ...

email@hidden
_______________________________________________
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.

References: 
 >why Obj-C (From: Matthew Johnson <email@hidden>)
 >Re: why Obj-C (From: "Erik M. Buck" <email@hidden>)
 >Re: why Obj-C (From: Matthew Johnson <email@hidden>)

  • Prev by Date: Looking for system service written in Java
  • Next by Date: Distributed Objects: IP #'s vs. hostnames
  • Previous by thread: Re: why Obj-C
  • Next by thread: Re: why Obj-C
  • Index(es):
    • Date
    • Thread