News for hackers. Stuff that matters.
Re:Type-Signature.com by lolinder on Saturday November 12, 2022 @02:03PM (#33575969)
> 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.

There are no comments on this comment yet.