Le 16 sept. 2013 à 18:38, Brendan Eich <[email protected]> a écrit :

> Claude, thanks for answering, one correction at bottom:
>> Claude Pache <mailto:[email protected]>
>> 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>

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to