strawman for the := operator

Kevin Smith khs4473 at gmail.com
Wed Aug 8 11:13:42 PDT 2012


>
> Define Properties Operator
> http://wiki.ecmascript.org/doku.php?id=strawman:define_properties_operator
> Batch Assignment Operator
> http://wiki.ecmascript.org/doku.php?id=strawman:batch_assignment_operator (via
> dherman)
>

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.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120808/96bde07b/attachment.html>


More information about the es-discuss mailing list