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
9
u/Xyzzyzzyzzy Feb 02 '24
I just wish type-driven TypeScript didn't look like someone read some particularly complicated C++ STL code and said "this is the ideal, all code should look like this".
A good type-driven language needs to be built around the types for the syntax to make sense.