Object.define ==> Object.mixin??

Allen Wirfs-Brock allen at wirfs-brock.com
Tue Dec 11 10:27:28 PST 2012


On Dec 11, 2012, at 10:19 AM, Mark S. Miller wrote:

> On Tue, Dec 11, 2012 at 10:12 AM, Allen Wirfs-Brock
> <allen at wirfs-brock.com> wrote:
>> 
>> 
>> Except,
>> 1) It needs to iterate own keys, not just string valued property names so it
>> will pick up properties whose keys are symbols
>> 2) It needs to rebind super references
>> 3) I don't see any reason that it should be restricted to enumerable
>> properties. If the intend is to deprecate enumerable along with for-in then
>> we should be adding new functionality that is sensitive to the state of the
>> enumerable attribute.
> 
> "should not"?

Right, should not!

Allen


More information about the es-discuss mailing list