Re: goto: it's conceded
- Posted by Kat <KAT12 at co?sahs.n?t> Jun 01, 2008
- 692 views
Derek Parnell wrote: > > David Cuny wrote: > > Well, sometimes you're nested deep, and you need to get out. Implementing it > > > > without GOTO is messy and error prone. With GOTO, it's clear > > what's happening and it executes as expected. > > We can now do this (in V4.0) ... > > while cond1 label "toplevel" do > . . . > while cond2 do > . . . > while cond3 label "anotherpoint" do > . . . > while cond4 do > . . . > if abc then > exit "toplevel" > else > continue "anotherpoint" > end if > end while > end while > end while > end while > Why did you exit "toplevel" else continue "anotherpoint" and not continue "toplevel" else continue "anotherpoint" or goto "toplevel" else goto "anotherpoint" ? Kat