Set constructor arguments
Andrea Giammarchi
andrea.giammarchi at gmail.com
Tue Feb 14 00:09:15 PST 2012
thinking about the add behavior, where no duplicated values will be added,
this argument may cause some logic headache anyway
Set([1, 2, 1]) what should happen ?
Also I would probably never use typed arrays to Set procedure ... that
sounds against performances
About new syntax, generators are new too so ...
var s = Set(...(x * x for x of primes));
as well as all others ... still, I start thinking Set constructor is good
as it is
my 2 cents
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120214/ddcdb5a1/attachment.html>
More information about the es-discuss
mailing list