5 ms·
Literals and object/container subscripting are different things, even though they appear at the same time. Container literals should be compile time too and ava
by hboon 14y ago
Literals and object/container subscripting are different things, even though they appear at the same time. Container literals should be compile time too and available to all versions of iOS (or at least v4 and above).
I also think it should be possible to support container (NSArray, NSDictionary) subscripting for foundation classes at compile-time for all versions even if the new functions aren't around. They just have to translate to the existing functions. I bet they do this too[1]
(upvoted you, it is a very informative link).
Edit: some more thoughts.
[1] No, they don't do that in v4.4. But maybe they will in a future version of Xcode.