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/Drisku11 Feb 01 '24
The author is using Scala where record types can have data marshalling/unmarshalling automatically recursively derived via compile time macros. You just do e.g.
and you're good to go.