strawman for the := operator

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

> Define Properties Operator
> 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list