Re: optional then-do, was: Feature creep
- Posted by Kat <KAT12 at coosa?s.ne?> May 15, 2008
- 639 views
CChris wrote: <snippage occured> > Keep then and friends optional, I see nothing wrong with them apart from > having > to type them and clutter the screen. I vote for optional, and i will keep typing them in any case that spreads across lines in the editor. Ex:
if blah x = 0 end if if blorpe then -- lotsa code end if if cowabunga then else end if
I understand as an offshoot of the optional, i could also use "then" in place of "do" and vice versa and not cause an error.
while lenc do if lenc do goto lenc case lenc do }}} <eucode> > But they spare you the "end <block>". I vote in favor of "end <block>", it proves the interpreter knows what i believe is the end of that block, and i have had to tell the interpreter that from time to time, where the end of which block is... }}} <eucode> while what do -- code if blah then -- do this else -- do that end while --code end if
That's just my votes, that's all, because "option" doesn't force me to do it that way. Kat