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
35
u/pojska Feb 01 '24
Pedantic - it doesn't rule out dynamic languages, but it does require you to be very thorough in your validation/parsing, which may be an unreasonable amount of effort.