Set constructor arguments

Andrea Giammarchi andrea.giammarchi at gmail.com
Tue Feb 14 12:07:01 PST 2012


if you accept a single argument, of course, but what if you Set(..[1, 2,
1]) then ?

magic add through Set constructor does not sound good to me

On Tue, Feb 14, 2012 at 8:27 PM, Peter Michaux <petermichaux at gmail.com>wrote:

> On Tue, Feb 14, 2012 at 12:09 AM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com> wrote:
> > 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 ?
>
> I think that should be a set with one element. The element is an array
> of length three.
>
> Peter
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120214/d46593a6/attachment.html>


More information about the es-discuss mailing list