News for hackers. Stuff that matters.
Re:Implement with Types, Not Your Brain by Twisol on Tuesday June 25, 2019 @09:08PM (#20280982)
The function definition must work unchanged for any choice of types. In order to “change” their values, it would have to know what other values are possible and how to get them.

Frame it as a game: give me a function definition and I will give you a pair of types for which that function is statically ill-defined. You must give me a function that works, without changing how it’s defined, for whatever pair of types I tell you.

There are no comments on this comment yet.