Re: Silly question
Re: Silly question
- Subject: Re: Silly question
- From: Ben Hines <email@hidden>
- Date: Thu, 20 Dec 2001 23:23:07 -0800
At 5:58 PM -0500 12/20/01, Lance Bland wrote:
On Thursday, December 20, 2001, at 05:15 PM, John C. Randolph wrote:
However, it is considered a bad practice to have multiple returns in a
single function or method.
I disagree with you on this. What I tend to do is something like:
I agree with John. My favorite is this:
Most CS professors will tell you not to use multiple returns.
As Ondra said, if your function can't fit on one screenful of text,
it's too long.
-B
--