3 ms·
Validating an email is different from validating a primitive. You can validate a primitive like an int based on it's own state alone.
by initplus 5y ago
Validating an email is different from validating a primitive.
You can validate a primitive like an int based on it's own state alone.
- taeric 5y agoDifferent validation, but yes? And then there is validating it is a valid int, but is it valid to use it somewhere? 7642468 is a valid int, but is it a valid address? That is, the primitives are unlikely to be your concern in programming. Handy tools, but not your problem domain.