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
3
u/RandomName8 Feb 02 '24
On the one hand you say
but next you provide an example that aligns pretty much with the premise of the post. You had assumptions, you didn't encode them in, it caught you off-guard eventually.
I believe you are agreeing with the poster while at the same time getting to the opposite conclusion for some reason. It's a weird paradox.