Re: Goto (Was Re: Open Source)
- Posted by Jason Gade <jaygade at ya?oo.?om> Oct 29, 2007
- 804 views
c.k.lester 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. > > IMHO, we should never choose tradition over efficiency. :) But we should choose consistency and the principle of least surprise over efficiency. Some languages, such as the BASH shell, put the until clause at the beginning of the loop. I don't know how hard it would be with regards to parsing, but I would prefer it be done as it is done in C: The current Euphoria while loop, or
do -- some statements while x end while
For loops which are required to be executed at least once. I disagree with adding a keyword that only reverses the truth of a decision. -- A complex system that works is invariably found to have evolved from a simple system that works. --John Gall's 15th law of Systemantics. "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.