2 ms·
> You don't even need to trust them. The compiler checks that their Map is the same as what you call a Map. Sort of. I think the person I was replying to was i
by lolinder 4y ago
> You don't even need to trust them. The compiler checks that their Map is the same as what you call a Map.
Sort of. I think the person I was replying to was indicating that the implementation could be wrong and still match the type signature. As a simple example, `insert` could return the exact same Map object as was passed in (rather than one that has the key updated) and still match the type signature of `insert`.
On the whole you're right, because if your standard data structures are that bad you should really be using a different language, not choosing to ignore types because they might not be helpful this time.