shortcuts for defining block-local private names, plays nicely with @foo syntax
Axel Rauschmayer
axel at rauschma.de
Tue Jan 24 11:06:58 PST 2012
Reiterating my support for the reformed object model (ROM): I love how the ROM will finally end the clashes between application data (array elements, entries in objects-as-maps) and program definition (methods, non-method properties). It’s a nice clean-up, with a clear migration strategy.
> Regardless, if we want to ever have a reformed object model where [ ] can be defined to mean element access we probably shouldn't also depend upon [ ] for private named property definition considering that any object that redefines [ ] is going to have to define and probably invoke the private named elementGet/elementSet methods.
@() could take the place of [] for property access, if we allow string operands.
--
Dr. Axel Rauschmayer
axel at rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120124/06e89ca9/attachment.html>
More information about the es-discuss
mailing list