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
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss