Hacker News new | ask | show | jobs
by lukeredpath 4536 days ago
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.

1 comments

Viewing the source code, it does seem to support sets and dictionaries.