News for hackers. Stuff that matters.
Re:Names are not type safety by embwbam on Sunday November 01, 2020 @11:19PM (#24964792)
Practically, I disagree with the GP. A newtype is fine in these cases. You don't have to say you know what to do with negative Lengths if you have a smart constructor that won't let you create one.
Re:Names are not type safety by codebje on Monday November 02, 2020 @02:15AM (#24965457)
Can you subtract lengths as in "let length3 = length1 - length2" ?