2 ms·
> For instance parameter validation is one instance where I think an early return is very much warranted. There you typically have no cleanup to do since it's e
by augustk 7y ago
> For instance parameter validation is one instance where I think an early return is very much warranted. There you typically have no cleanup to do since it's effectively the prelude of the function.
That's what the assert statement is for; checking pre- and postconditions.