Oliver Hunt (2014-04-25T18:45:27.000Z)
domenic at domenicdenicola.com (2014-05-01T23:00:38.841Z)
Yup. Honestly I don’t think destructuring to an arbitrary expression would be that common so I think it’s worth it to define order of operations as being left to right and leave it to the engines to optimise things sanely. Burning some stack space to hold the intermediate slots doesn’t seem that bad, although that said I’ve forgotten what the semantics for ```js o = {__proto__: {set foo() {print(“bar”)}} o.foo = (o.__defineSetter__(“foo”, function(){ print(“foo”)})), 5 ``` Is expected to be (I could see what we actually _do_ but that’s no guarantee that it’s the right thing).