strawman for the := operator
khs4473 at gmail.com
Wed Aug 8 11:13:42 PDT 2012
> Define Properties Operator
> Batch Assignment Operator
> http://wiki.ecmascript.org/doku.php?id=strawman:batch_assignment_operator (via
It's not clear to me that a batch assignment operator would obviate the
need for similar library functions in the wild. Sometimes one wants to
overwrite the properties of the target object, but other times one only
wants to set a value when the target object does not already have a
property defined for that name (as in underscore's "defaults").
A batch-assignment operator in this way is similar to a flat-head
screwdriver. Nice to have, but you're still going to need to go to the
hardware store to assemble that dresser from Ikea.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss