News for hackers. Stuff that matters.
Re:Objective-C Generics by lukeredpath on Monday January 13, 2014 @06:30AM (#7049996)
Other than adding dozens of methods to NSArray/MutableArray for each "generic" you define and limiting my choice of collection to an array (rather than a set or dictionary), why would you use this rather than define your own collection class that keeps the underlying store encapsulated and enforces its own type-safety?

If type-safety is that important, a custom collection class will enrich your domain model and be more obvious.

Re:Objective-C Generics by btown on Monday January 13, 2014 @12:05PM (#7051799)
Viewing the source code, it does seem to support sets and dictionaries.