Shared publicly  - 

Rumor has it that Xcode 4.4 adds support for dictionary, array, and NSNumber literals to Objective-C. It looks like that code just landed in the public clang repo:

NSArrays can now be written like @[my, object, collection], NSDictionaries are @{my: object}, NSNumbers are @1(this is a boxed integer, in javaspeak).

NSArrays can now be subscripted with myarray[0], dicts can be subscripted with dict[key].

(See the test cases for example syntax.)
Jump to revision: Previous · Next. Author: kremenek. Date: Tue Mar 6 14:05:56 2012 CST (111 minutes, 47 seconds ago). Log Message: Add clang support for new Objective-C literal syntax for NSDictionary...
Nico Weber's profile photo
Add a comment...