||= is much needed?
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).
Wesley W. Garland
Director, Product Development
+1 613 542 2787 x 102
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss