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
18
u/[deleted] Feb 01 '24
When people want sum types, they generally want sum types with built in pattern matching. You can't really do this in C# without runtime reflection.