4 ms·
We could always say that you shouldn't use return statements for control flow to complicate things further. ;) Your code doesn't preserve information about wha
by mtrimpe 14y ago
We could always say that you shouldn't use return statements for control flow to complicate things further. ;)
Your code doesn't preserve information about what caused the failure though.
And also, I actually did magically reduce lines of code since I can just let the exceptions I fix bubble up and I've customized my web framework to turn them into appropriate error pages and the the <Class>.NotFound exceptions are even annotated so that they're automatically turned into 404s.