Too many return-statements = bad style?

Peter Hansen peter at engcorp.com
Fri Jul 9 08:52:03 EDT 2004


Jeff Epler wrote:

> Some style guides discouraged multiple "return" statements out of
> some theoretical superiority of the single-return form.  single-point-
> of-return was supposed to lead to easier analysis.

Or for easier maintenance...  it's still a decent rule to _try_ to
follow, but sometimes the contortions needed to avoid it make
things even worse.

That's why they're style "guides"...

-Peter



More information about the Python-list mailing list