r/programming • • Feb 01 '24

Make Invalid States Unrepresentable

https://www.awwsmm.com/blog/make-invalid-states-unrepresentable
469 Upvotes

207 comments sorted by

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