|
|
|
|
|
by zeroq
255 days ago
|
|
Can you help me understand the context in which this would be far more beneficial from having a validation function, like this in Java: int validate(int age) {
if (age <= 200) return ago;
else throw Error();
}
int works = validate(200);
int fails = validate(201);
int hmmm = works + 1;
|
|
If it fails at run time, it could be the reason you get paged at 1am because everything's broken.