objective c - Monomorphic arrays with static type checking -


id<uiview> views = @[one, two, three];   nsinteger object = [views lastobject]; // compiler warn me `views` stores uiviews 

how far have go implement this? have experience extending clang support similar features?

similar: nsmutablearray-force-the-array-to-hold-specific-object-type-only

i have thought also, though in end ask make me more productive. objective-c seems me pragmatic language, features has real world useful, things block super useful, features namespaces , typed arrays in experience not much. add lot of nsassert code check stuff that. mutable collections contained within other classes , have lot of control on can added them, maybe thats pattern adopt because don't have typed collections?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -