||= is much needed?

Brendan Eich brendan at mozilla.org
Tue Jun 12 12:12:45 PDT 2012


Brendan Eich wrote:
> LeftHandSideExpression ?= AssignmentExpression
>
> are roughly
>
> Let lref = evaluate A.
> Let lval = GetValue(lref).
> Let rref = evaluate B. 

Of course, A should be LeftHandSideExpression and B should be 
AssignmentExpression.

This is pretty simple. We could even grant an exception and get it into 
ES6, IMHO. But first it needs a strawman and some discussion.

Absent fast objections here, I'll co-opt the

http://wiki.ecmascript.org/doku.php?id=strawman:default_operator

strawman and put it on the agenda.

/be


More information about the es-discuss mailing list