||= is much needed?

Brendan Eich brendan at mozilla.org
Tue Jun 12 19:41:01 PDT 2012


Ryan Florence wrote:
> But if we're adding ?= because we're adding ?: maybe its okay to add 
> ||= while we're at it? That said, I would hate to see ?= get derailed 
> because ||= is "dumb".

"Dumb" is too strong. How about YAGNI? Every use-case of || I've seen in 
JS (almost all with the result of || the RHS of an = op) really wants ?=.

/be


More information about the es-discuss mailing list