quinntaylor / CHDataStructures

An Objective-C library of data structures, such as deque, heap, linked list, queue, stack, and tree.
Other
387 stars 78 forks source link

No ArrayList implementation #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hello. If anyone checks this out. I've noticed there's no ArrayList implementation in CHDataStructures. Maybe we should add one? Consider having a look at my implementation here - https://github.com/igorastvorov/CollectionsKit/blob/master/CollectionsKit/CKArrayList.h

quinntaylor commented 9 years ago

An array list is the same thing as a dynamic array, and we already get that from NSMutableArray. In fact, your implementation just wraps one and exposes different API. This would be counterintuitive to Cocoa developers, and be slower with no additional benefits. CHDS already has stack and queue structures that serve similar purposes. I don't think it makes sense to add this. Thanks for the suggestion, though!

ghost commented 9 years ago

Okay, agree on that. Thanks for the reply.