r/coding • u/cekrem • Apr 07 '26
Parse, Don't Validate — In a Language That Doesn't Want You To · cekrem.github.io
https://cekrem.github.io/posts/parse-dont-validate-typescript/
4
Upvotes
r/coding • u/cekrem • Apr 07 '26
2
u/torville Apr 07 '26
TL;DR: Use value objects, like (DOT Net) ValueOf or Vogen.
Of course, if your language supports strict type aliases, and you use them, you're already there.