Bruno Jouhier (2016-05-10T08:58:55.000Z)
A big +1.

A quick grep on our code base shows 3000+ occurrences of the x = x || y
idiom in 700+ files. This proposal would make this code more compact and
more efficient, as it avoids redundant assignments.

The x = x && y idiom is a lot less common: 150 occurrences only, and is
usually associated with questionable reuse of a polymorphic variable to
walk a chain. But it would seem logical to extend the proposal to &&=.

Bruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160510/6ae5d545/attachment.html>
bjouhier at gmail.com (2016-05-10T09:02:19.329Z)
A big +1.

A quick grep on our code base shows 3000+ occurrences of the `x = x || y`
idiom in 700+ files. This proposal would make this code more compact and
more efficient, as it avoids redundant assignments.

The `x = x && y` idiom is a lot less common: 150 occurrences only, and is
usually associated with questionable reuse of a polymorphic variable to
walk a chain. But it would seem logical to extend the proposal to `&&=`.

Bruno