On May 30, 2012, at 3:16 PM, Herby Vojčík wrote:

> I can read literal extension in the same way: "this is a bunch of data, make 
> the receiver object contain that data in it".

OK, but that agrees with my point, which is that the ":" doesn't carry an 
operational connotation. To be specific, if the syntax were:

    obj.={ x: 1, y: 2 }

then the way you'd interpret it is "here's a bunch of (declaratively specified) 
data, please add it all atomically to object," and it's the "=" that conveys 
the update action.

To be clear, my position is:

    obj.{ x: 1, y: 2 }   // over my dead body
    obj.={ x: 1, y: 2 }  // as [[DefineOwnProperty]], OK, but I'm not sure it's 
worth it
    obj.{ x = 1; y = 2 } // as [[Put]], I'm cool with it

> I was mostly concerned about concise methods.

For most cases, you just want [[Put]]. And I favor thin arrow for concise 
standalone methods/constructors.

Dave

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

Reply via email to