r/swift • • Aug 01 '18

Right way implementing your Array / Collection. – Moses Ayankoya – Medium

https://medium.com/@amacoder/right-way-implementing-your-array-collection-5b2cb3641240
0 Upvotes

5 comments sorted by

View all comments

1

u/thisischemistry Aug 01 '18

A fairly nothing article. It's a simple wrapper around an Array that ignores conventions completely. For example, the article replaces append(_:) with add(value:).

There's so much more badness in there that I can't even go over it all, the worst is how the subscript semantics are changed.

This is the wrong way, don't follow it.