octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: goto vs. return?


From: LachlanA
Subject: Re: goto vs. return?
Date: Sun, 24 Jan 2016 17:54:32 -0800 (PST)

Michael,

It would also be possible to say something like "avoid returns where
possible, but not at the expense of introducing gotos".  I don't think Rik
is advocating liberal use of early returns, just weighing up two undesirable
options.

You suggest showing where additional returns occur, but the lines already
start with "return".  Are you suggesting an in-line comment, perhaps with
capitals, or mentioning returns in a block comment at the start of the
function?  It would be good to be more specific in the guidelines.

Cheers,
Lachlan



--
View this message in context: 
http://octave.1599824.n4.nabble.com/goto-vs-return-tp4674494p4674502.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]