3 ms·
>Granted it's difficult to remember the type of the casual e-mail address or of a list of integers. It would be a toy project that only (or mainly) has those a
by coldtea 10y ago
>Granted it's difficult to remember the type of the casual e-mail address or of a list of integers.
It would be a toy project that only (or mainly) has those as all the types you need to remember -- so that just proves my point.
Also the 'type' of an email address is an unsolved problem -- if we're talking type checking. It's not a string, and it's not solvable with regex either. So bad example all around.
- jstimpfle 10y agoThis is the point. Encode email addresses as strings and be done. Not a problem in practice.