An "extend" operator is a natural companion to <|

Brendan Eich brendan at
Tue Jul 19 10:20:25 PDT 2011

On Jul 19, 2011, at 10:06 AM, Dmitry A. Soshnikov wrote:

> Object.extend(src, dest)

This is certainly closest to paving the cowpath. Either via a built-in module exporting 'extend', or as you suggest, directly on Object. The Object.extend route is a bit harder to analyze, but not fatally so for any capable static analysis framework.

Either way (built-in module or Object.extend), old script (Hi Luke! ;-) could use it too.


More information about the es-discuss mailing list