Re: Suggestion: for-of-and loops

2015-02-17 Thread Brian Blakely
Thank you for that insight On Sun, Feb 15, 2015 at 10:10 PM, Brendan Eich wrote: > Kevin Smith wrote: > >> >> Have you tried writing a combinator which does exactly that? Take a look >> at zip in python. >> >> > Right -- we don't add new syntax lightly, we'd need to see zip used a lot, > and at

Re: Suggestion: for-of-and loops

2015-02-15 Thread Brendan Eich
Kevin Smith wrote: Have you tried writing a combinator which does exactly that? Take a look at zip in python. Right -- we don't add new syntax lightly, we'd need to see zip used a lot, and at some irreducible-without-special-form overhead. /be

Re: Suggestion: for-of-and loops

2015-02-14 Thread Brian Blakely
That is basically what I have done in practice. On Sat, Feb 14, 2015 at 2:59 PM, Kevin Smith wrote: > Have you tried writing a combinator which does exactly that? Take a look > at zip in python. > On Feb 14, 2015 2:52 PM, "Brian Blakely" wrote: > >> Apologies if this isn't the correct forum for

Re: Suggestion: for-of-and loops

2015-02-14 Thread Kevin Smith
Have you tried writing a combinator which does exactly that? Take a look at zip in python. On Feb 14, 2015 2:52 PM, "Brian Blakely" wrote: > Apologies if this isn't the correct forum for this, and please point me > the right way if not. > > The motivation is that it would be useful if one could t

Suggestion: for-of-and loops

2015-02-14 Thread Brian Blakely
Apologies if this isn't the correct forum for this, and please point me the right way if not. The motivation is that it would be useful if one could tersely loop over multiple iterators simultaneously. I think this could be accomplished with a "for-of-and" syntax. Example: let temp = [80, 35, 2