Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This was of course an example to illustrate the concept. So whatever makes sense in reality will differ depending on the usecase.

I assumed there is a typical registration process. Future users of your application input a text in a field that is meant to be a reachable email address. So the first step would be to filter out garbage or typoed text that your mail-sending function would not be able to handle. And because you don't know how long people need to click on a link in their mail you need to store and work with that validated-but-unverified email address till they do. And for this having your own type that cannot be mixed up with the verified email addresses can make sense. Depending on how complex your application is.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: