New private names proposal
Brendan Eich
brendan at mozilla.com
Thu Dec 16 15:23:26 PST 2010
On Dec 16, 2010, at 2:19 PM, Mark S. Miller wrote:
> Currently is JS, x['foo'] and x.foo are precisely identical in all contexts. This regularity helps understandability. The terseness difference above is not an adequate reason to sacrifice it.
Aren't you proposing the same syntax x[i] where i is a soft field map, to make exactly the same sacrifice?
http://wiki.ecmascript.org/doku.php?id=strawman:names_vs_soft_fields
/be
More information about the es-discuss
mailing list