Re:Don't return null; use a tail call
by strictfp on Sunday January 15, 2012 @04:19PM
(#3468288)
I generally find that one should avoid using exceptions for flow control. They have their usages, but they should in my opinion only be used when they really shine - when you have multiple levels of callers between the detection of the error and the handling. This was not the case in the simple example, and so I chose a return value instead of an exception.
[ Parent
| on HN ]
There are no comments on this comment yet.