19 ms·
This is worse in every possible way. If the default value was part of the domain of the function it would be impossible to distinguish an error from a legit ans
by josalhor 6y ago
This is worse in every possible way. If the default value was part of the domain of the function it would be impossible to distinguish an error from a legit answer without breaking encapsulation. If it wasn't, then you're handling errors like in C.. ugh