[comp.lang.icon] break, goto

goer@SOPHIST.UCHICAGO.EDU (Richard Goerwitz) (07/23/90)

Having break act as a control structure has helped me avoid a helluva
lot of kludgy constructions (which in C would normally be uncluttered
with a goto).  E.g. I occasionally have reason to write

  every i := 1 to 2 do {
    every j := 1 to 10 do {
      i+j = 5 & {break next}
      }
    }

Naturally, there are ways to code this without using the break.  It's
a nice bit of sugar, though, isn't it?

    -Richard L. Goerwitz              goer%sophist@uchicago.bitnet
    goer@sophist.uchicago.edu         rutgers!oddjob!gide!sophist!goer