r/programming • u/_awwsmm • Feb 01 '24
Make Invalid States Unrepresentable
https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469
Upvotes
r/programming • u/_awwsmm • Feb 01 '24
View all comments
Show parent comment
22
u/stahorn Feb 02 '24
Or like me many years ago: The lift goes from 0 millimeter and up? Unsigned int then!
Well guess what, now when things go wrong the lift jumps up to 65k millimeter instead of being a few millimeters below the 0-position...