3 ms·
Swift and Objective-C have collections that change implementation as needed, but they can do it because they're well abstracted (enough) and usually immutable s
by astrange 4y ago
Swift and Objective-C have collections that change implementation as needed, but they can do it because they're well abstracted (enough) and usually immutable so there's less chance of making a bad assumption.
Most other languages only have mutable collections, and name collection types after their implementation details instead of what the user actually wants from them.