News for hackers. Stuff that matters.
Re:Objective-C literals for NSDictionary, NSArray, and NSNumber by chrisdevereux on Sunday February 19, 2012 @09:52AM (#3609457)
@-prefixed literals for collections are definitely welcome (I won't miss those nested 'dictionaryWith...' calls for sure).

Anyone know how the []-access will work? Is this going to be a special case for NSArray/NSDictionary synthesized in by the compiler, or is there going to be runtime support for a []-operator message a la Ruby, or maybe something related to key-value coding?

I hope this is done coherently, anyway. I worry that too many special cases to overcome problems like verbose collection access could snowball.

Re:Objective-C literals for NSDictionary, NSArray, and NSNumber by jbrennan on Sunday February 19, 2012 @10:24AM (#3609518)
There are methods you can implement in your own classes to provide setting and getting for both the array and dictionary style syntax.

If you're a Mac developer, check the forums. Else, wait for the info to be non-NDA.