Claude Pache (2013-09-16T17:03:05.000Z)
Le 16 sept. 2013 à 18:38, Brendan Eich <brendan at mozilla.com> a écrit :

> Claude, thanks for answering, one correction at bottom:
>> Claude Pache <mailto:claude.pache at gmail.com>
>> September 16, 2013 11:42 AM
>> I suggest:
>> 
>> [ ... mySet ]
>> 
>> or, if you don't want to use any new syntax:
>> 
>> Array.from(mySet)
>> 
>> —Claude
>> 
>> P.S. The syntax  `[e for e of mySet]` is outdated in Harmony, you should use `[(for let e of mySet) e]`.
> 
> No, the new syntax is [for (e of mySet) e] -- no let and parens in the same place as in the for-of/in loop statements.
> 
> /be

Yes, thanks. The wrong placement of parens was a typo. But for the `let` keyword, I just realise that there is a discrepancy between for/of loops and comprehensions.

—Claude

> <snip>
domenic at domenicdenicola.com (2013-09-25T02:34:30.741Z)
Le 16 sept. 2013 à 18:38, Brendan Eich <brendan at mozilla.com> a écrit :

> No, the new syntax is `[for (e of mySet) e]` -- no `let` and parens in the same place as in the for-of/in loop statements.

Yes, thanks. The wrong placement of parens was a typo. But for the `let` keyword, I just realise that there is a discrepancy between for/of loops and comprehensions.