Operators ||= and &&=
Mark S. Miller
erights at google.com
Wed May 6 13:07:23 PDT 2009
On Wed, May 6, 2009 at 12:42 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Current position: long default parameter values, short ||= and ??=.
I like that. The great virtue of ||= is that it can be explained as
repairing a non-orthogonality, thereby making the language *simpler*
to explain. But ||= is accident prone due to the falsy issue. &&= is
not as accident prone, but makes the explanation of the language more
Default parameter values are intuitive and reliable.
More information about the es-discuss