4 ms·
A little more details to this can be found http://cocoaheads.tumblr.com/post/17757846453/objective-c-literals-for-nsdictionary-nsarray-and http://cocoaheads.tu
by aggarwalachal 15y ago
A little more details to this can be found
http://cocoaheads.tumblr.com/post/17757846453/objective-c-literals-for-nsdictionary-nsarray-and http://cocoaheads.tumblr.com/post/17757846453/objective-c-li...
This was posted about 3 weeks ago.
- oomkiller 15y agoYou're right, I forgot to utilize the search function :) HN discussion here: http://news.ycombinator.com/item?id=3609071 http://news.ycombinator.com/item?id=3609071
- pooriaazimi 15y agoA few more literals (via http://news.ycombinator.com/item?id=3672744 http://news.ycombinator.com/item?id=3672744): arr[@1] === [arr objectAtIndex:1] dict[@1] === [dict objectAtIndex:1] dict[@"key"] === [dict objectForKey:@"key"]