Re: Changes to Euphoria
c.k.lester wrote:
>
>
> This is a cool idea. All our loop constructs can be replaced by one simple
And millions of lines of code broken.
>
> Loop [from x by y] -- default is from 1 by 1 and optional
> -- put code here to emulate "for" loop
> if Loop = 10 then exit end if
> -- code here for "while" loops
> End Loop
>
The above loop is simple but now go to something like
for a = 1 to length(lines) do ....
Now you are evaluating the length of lines over and over and over again.
Granted, length is stored in the sequence but some other calculation.
If that's what you want, you can do it via
while 1 do
end while
If you have trouble typing that, you can use an editor that will expand loop to
while 1 do.. Most decent editors do that.
--
Jeremy Cowgar
http://jeremy.cowgar.com
|
Not Categorized, Please Help
|
|