[Edu-sig] Algebra 2
Ivan Krstić
krstic at solarsail.hcs.harvard.edu
Sat Oct 4 08:30:45 CEST 2008
On Oct 3, 2008, at 9:22 PM, michel paul wrote:
> ever since those days GOTO has been considered bad style. It
> produces crazy and cumbersome code.
(This generalization is patently incorrect. *Bad* use of GOTO tends to
create more spectacular problems in code organization than bad use of
a number of other language features, which is why GOTO has earned its
reputation. When used correctly, goto is almost a necessity for clean,
understandable code in the face of certain flow complexities such as
nested loops or multiple "fail, shared cleanup, return" situations
within the same function.)
--
Ivan Krstić <krstic at solarsail.hcs.harvard.edu> | http://radian.org
More information about the Edu-sig
mailing list