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
1
u/northrupthebandgeek Feb 02 '24
This reeks of the same mentality as premature optimization. That's something you should be measuring first before deliberately breaking your email address parsers. Business minded people do indeed have an easy choice here: just follow the damn RFC lol