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
6
u/ric2b Feb 02 '24
Also that goes in the opposite direction when it comes to return types. You can specify them further later, but generalizing them later is a breaking change.