Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New ObjC style language development



Adam Nohejl wrote:

Category syntax is a bit odd from my point of view. Their name doesn't always appear together with the respective class name (in ObjC: Class(Category)). This fact and the EXTENDS keyword makes me think of inheritace (that's also what it means in Java - another Cocoa/GNUstep language) rather than categories.
...
I suppose that this is a better way to go if you want your extensions to be as close to ObjC as possible. The current syntax would be confusing for both ObjC and Java developers.

How about "ALTERS"?

  Also, a nitpick: the Interface sample contains:

CLASS METHOD initWithFoo: (foo : Foo) andBar: (bar : Bar) : FooBar;

  According to Cocoa/OpenStep practice, init* should be an instance
method. The corresponding class method would be newWithFoo:andBar:, or
fooBarWithFoo:andBar: if it autorelease the return value. Also, the
return type should be OBJECT to allow clean overriding of superclass
initialisers with the same name.

--
Jens Ayton

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden
References: 
 >New ObjC style language development (From: ObjM2 <email@hidden>)
 >Re: New ObjC style language development (From: Adam Nohejl <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.