4 ms·
Why not? That would seem useful if other code depends on having a validated email address.
by ChrisSD 6y ago
Why not? That would seem useful if other code depends on having a validated email address.
- the_mitsuhiko 6y agoI point you to the article.
- ChrisSD 6y agoThe article doesn't exactly make a case against it. It even explicitly says it's useful! It just says making a newtype isn't as strong a guarantee as a proper type. Newtypes do work to assert certain checks have already been done and need not be repeated.