Re: Goto (Was Re: Open Source)
- Posted by CChris <christian.cuvier at agri?ultu?e.gouv.fr> Oct 29, 2007
- 797 views
Chris Bensler wrote: > > CChris wrote: > > > > c.k.lester wrote: > > > > > > CChris wrote: > > > > > > > > loop do > > > > -- some code > > > > until some_condition > > > > end loop > > > > > > The "end loop" is redundant, isn't it? > > > > Sure, but in keeping with all other Euphoria code block syntactic markers. > > > > CChris > > why not the following? > }}} <eucode> > until CONDITION do > BLOCK > end until > </eucode> {{{ Because the condition then appears at the top of the loop, while it is tested at the end only. I bet people will complain of the above being too similar to a while loop. I thought it more intuitive the other way, but have no serious objection to the shorter form either. CChris CChris