Re: Object model reformation?

2012-12-27 Thread Axel Rauschmayer
seems useful, but that’s apparently considered for ES7 or later, anyway. On Dec 27, 2012, at 5:53 , Brendan Eich bren...@mozilla.com wrote: Axel Rauschmayer wrote: http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation Is the object model reformation (OMR) still on the table

Re: Object model reformation?

2012-12-27 Thread Andreas Rossberg
On 27 December 2012 05:53, Brendan Eich bren...@mozilla.com wrote: I have a theory: hashes and lookup tables (arrays or vectors) have displaced most other data structures because most of the time, for most programs (horrible generalizations I know), you don't need ordered entries, or other

Re: Object model reformation?

2012-12-27 Thread Brendan Eich
Andreas Rossberg wrote: On 27 December 2012 05:53, Brendan Eich bren...@mozilla.com mailto:bren...@mozilla.com wrote: I have a theory: hashes and lookup tables (arrays or vectors) have displaced most other data structures because most of the time, for most programs (horrible

Object model reformation?

2012-12-26 Thread Axel Rauschmayer
http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation Is the object model reformation (OMR) still on the table for ES6? The reason I’m asking is that I recently remembered a technique from the Java collections API: you could wrap any collection in a read-only “view

Re: Object model reformation?

2012-12-26 Thread Brendan Eich
Axel Rauschmayer wrote: http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation Is the object model reformation (OMR) still on the table for ES6? It never was -- it missed the cutoff by over five months. The reason I’m asking is that I recently remembered a technique from

Re: Object Model Reformation – elementIn?

2012-01-02 Thread Allen Wirfs-Brock
On Jan 1, 2012, at 5:54 AM, Axel Rauschmayer wrote: http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation Currently, there one can override the built-in operators via elementGet (getting via []), elementSet (setting via []) and elementDelete (`delete` operator).

Re: Object Model Reformation – elementIn?

2012-01-02 Thread Axel Rauschmayer
Currently, there one can override the built-in operators via elementGet (getting via []), elementSet (setting via []) and elementDelete (`delete` operator). Wouldn’t it make sense to also provide elementIn (`in` operator)? Probably. It may depend upon how strongly you feel about

Object Model Reformation – elementIn?

2012-01-01 Thread Axel Rauschmayer
http://wiki.ecmascript.org/doku.php?id=strawman:object_model_reformation Currently, there one can override the built-in operators via elementGet (getting via []), elementSet (setting via []) and elementDelete (`delete` operator). Wouldn’t it make sense to also provide elementIn (`in` operator)?