Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
embwbam
· 6y ago · 0 comments
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.
Comments
[–]
codebje
6y ago
Can you subtract lengths as in "let length3 = length1 - length2" ?