Adding through recursion
Micah Elliott
mde at micah.elliott.name
Fri Nov 18 17:45:02 EST 2005
On Nov 19, Ben Finney wrote:
...
> This is just one of many reasons why I advocate always having a
> *single* return statement, at the *end* of the function.
Agreed that it's a good *general* practice, but sometimes early exit
is useful and clear.
This is somewhat of a religious topic. A good discussion is:
http://c2.com/cgi/wiki?SingleFunctionExitPoint
pychecker warns of fall-off-the-end functions.
--
_ _ ___
|V|icah |- lliott <>< mde at micah.elliott.name
" " """
More information about the Python-list
mailing list