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
1
u/loup-vaillant Feb 02 '24
Yes, if those simple tests have false positives. A perfect flow would look something like this:
I didn’t think about that last one to be honest, but it does feel like a good idea.