[Kst] extragear/graphics/kst/devel-docs

Barth Netterfield netterfield at astro.utoronto.ca
Wed Nov 23 01:34:02 CET 2005


On November 22, 2005 04:19 pm, Andrew Walker wrote:
> I think if you compare the number of bugs as a result of early returns
> with the number of bugs as a result of huge nesting blocks (a somewhat
> relative term) it would favour going with the nesting.

I think that early returns right at the begining of a function (checking 
parameters, etc) is a good idea (easier to deal with then a function long 
if()).  But mid-routine returns seem like a really bad idea to me.

Is there any academic discussions of this that anyone is aware of?

cbn



More information about the Kst mailing list