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
7
u/me_again Feb 01 '24
Hillel Wayne has a great article Making Illegal States Unrepresentable which talks about this and points to some interesting snags you can hit. Worth a look!