Re: Minimalism and Euphoria
- Posted by DerekParnell (admin) Oct 30, 2014
- 2118 views
ChrisB said...
I = 1 while 1 do Do stuff I += 1 (or other) If I = 100 then exit end if end while
While well intentioned, Chris, I think you might mean ...
I = 1 label "LoopTop" if I <= 100 then Do stuff I = I + 1 goto "LoopTop" end if
Actually, in the first program I ever wrote, I didn't know about looping so I did something like this ...
Do stuff Do stuff Do stuff Do stuff ... '96 more lines just the same'