by initplus · 5y ago · 0 comments
You can validate a primitive like an int based on it's own state alone.
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.