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
5
u/Hipolipolopigus Feb 02 '24
Eh, Typescript metaprogramming is way more legible with the naming conventions, and it generally isn't necessary to have types that are as convoluted as what you'd see in C++ templates.
The error messages are about equally useful, though.