> Aside from this confinement issue, all other the advantages that unique
> symbols have over unique-ish strings seem minor to me. The biggest is
> default non-enumerability, when we're getting away (admittedly slowly) from
> enumerability being significant anyway. IMO, if the only advantages of
> unique symbols over unique-ish strings are these minor ones, then they
> don't pull their weight.
>
>
The fact that, in the context of *unique* symbols, the unforgability
property of the symbol is pointless indicates to me that we might have a
mixing of orthogonal concerns.
That leaves default non-enumerability. Consider the fact that object
literal methods are enumerable. Why should choosing a "unique name" as
opposed to an identifier for a method have any bearing on enumerability?
{ Kevin }
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss