Logical Assignment Operators
brendan at mozilla.org
Tue Oct 9 21:24:44 PDT 2007
On Oct 9, 2007, at 6:33 PM, Brad Fults wrote:
> As far as I can tell  there have never been logical assignment
> operators (AND, OR) in ES and I can't access the spec on the wiki 
> anymore, so I don't know if they're in the spec. I don't see anything
> in the proposals section, so here's a proposal.
Try the reference implementation when in doubt:
$ make repl
>> a = 1
>> b = 0
>> a &&= b
>> b = "great!"
>> a ||= b
More information about the Es4-discuss