B
Ben Finney
Pete Forman said:There will always be more potential return points in languages that
support exceptions.
I was specifically referring to 'return' points, i.e. points in the
function where a 'return' statement appears.
In the example to which I responded, the function had multiple
'return' statements, and an 'assert' to aid in finding out when none
of the return statements was hit. I'm making the point that if that
effort is being taken anyway, it's more readable to allow the reader
to see only *one* explicit return at the end, and not write any more
in the first place.