Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Draft Proposal for Namespaces in Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Draft Proposal for Namespaces in Objective-C



On Apr 4, 2012, at 4:14 PM, Quincey Morris wrote:

I wonder (again, initial reaction) whether something like this:

@interface MyClass in MyNS : NSObject in default

might not seem more natural to existing Obj-C developers.

Since when does Obj-C avoid the use of punctuation? That gives me more of an AppleScript vibe than Obj-C.

Also, this would not facilitate having a class in one namespace descend from a class in another namespace. With Kyle’s notation you could do:

@interface someNS.MyClass : someOtherNS:SomeSuperClass

but if the whole thing is to be suffixed with “in namespace”, it seems that it would force everything to be in the same namespace, which would sort of defeat the point, unless you want to have “@interface MyClass in someNS : SomeSuperClass in someOtherNS”, which to me looks verbose and ugly.

Just my two cents.

Charles

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

This email sent to email@hidden

References: 
 >Draft Proposal for Namespaces in Objective-C (From: Kyle Sluder <email@hidden>)
 >Re: Draft Proposal for Namespaces in Objective-C (From: Quincey Morris <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.