[Bug 12248] Make objects first-class API citizens

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12248

Brendan Eich <brendan@mozilla.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allen@wirfs-brock.com,
                   |                            |brendan@mozilla.org

--- Comment #2 from Brendan Eich <brendan@mozilla.org> 2011-03-05 16:22:18 UTC ---
Why do we need such an unnaturally restricted object?

I've read the public-webapps thread and no one has made the case. Ojan et al.
cite precedent for allowing objects as keyword parameter sets. ES5 itself does
this, and ES5 specifies getters. Sicking listed running getters in a
well-defined order as a possible solution but no one said anything about this
idea.

The trick (such as it is) is to process parameters left to right, and normalize
object parameters by something like ES5's ToPropertyDescriptor abstract
internal operation (8.10.5 in ES5.1). If someone wants to write a getter and do
unusual things from it, that's their funeral.

/be

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Saturday, 5 March 2011 16:22:20 UTC