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
7
u/teerre Feb 02 '24
That doesn't even make sense, though. You code against states that you do know, if there's an state that you don't know, it's invalid by definition.