On 12.11.2010 12:01, Erik Corry wrote:
2010/11/12 Dmitry A. Soshnikov<[email protected]>:

What do you suggest?
I suggest you monkey patch a get method on the Array prototype and
forget trying to get the language semantics changed.  The people who
implement the language have made their opinions clear and as of this
post that includes V8.


Sure. And already have done (as mentioned in the initial message -- http://bit.ly/9KBxzl) -- with using proxies it's very easy to implement. Unfortunately (or fortunately -- it depends), not on `Array.prototype` (since I cannot replace it with a proxy, because of [[Configurable]] / [[Writable]] false), but with using `Array.new` semantics. It may be even used. Though, without a big wide-spreading (as in other langs), it will be just an academic curiosity without practical usage.

Dmitry.

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to