Re: Sequence initialisers for "for" loops

new topic     » goto parent     » topic index » view thread      » older message » newer message

Lmailles at AOL.COM wrote:
> for a=b to c by d do
> why can't for loops take sequences for a, b, c and d?
> for a={0,0,0} to {3,6,9} by {1,2,3} do
> standard sequence matching rules apply. b,c and d
> must have the same length

IMHO: a worthy, logical, intuitive, clean, elegant and
needed addition to Euphoria's interpreter.  The core
of the language is sequences and their manipulation.
Using sequences in this manner, in loops, is natural.
My unregistered (as soon as I sell a program, I'll
register :) ) vote is a definitive and emphatic yes.

take care--Hawke'

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu