Secure Coding mailing list archives

How can we stop the spreading insecure codingexamplesattraining classes, etc.?


From: mouse at Rodents.Montreal.QC.CA (der Mouse)
Date: Thu, 31 Aug 2006 17:44:56 -0400 (EDT)

ever heard of exceptions?  They're basically goto plus limited
state.  Spaghetti lives!

Not at all.  Exceptions are not like gotos; in particular, an exception
cannot be used to jump *into* a construct.  The major problems with
gotos are that they can be used to do branches that are downward or
sideways in the code parse tree (versus "structured" constructs, which
do such branches upward only).  Exceptions are upward-only branches,
and as a result don't have most of the problems gotos do.

/~\ The ASCII                           der Mouse
\ / Ribbon Campaign
 X  Against HTML               mouse at rodents.montreal.qc.ca
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Current thread: