||= is much needed?
Wes Garland
wes at page.ca
Tue Jun 12 10:53:08 PDT 2012
> This breaks from JS's C-inspired assignment operators, but perhaps we can
live with it.
FWIW -- I was confused when I first read ||=, I thought it was supposed to
be some kind of Boolean-coercing variant on |=. Now I see that it is more
like ?= from GNU make.
What do you think of GCC's ?: operator? It is basically a special form of
the ternary operator, and while not the same as your propsal, it addresses
many of the same use cases.
(I've been happy with it for a long time).
Wes
--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120612/657b1aed/attachment.html>
More information about the es-discuss
mailing list