> From: Brendan Eich <[email protected]>
> Date: July 19, 2011 18:59:04 GMT+02:00
> To: Sean Eagan <[email protected]>
> Cc: es-discuss <[email protected]>
> Subject: Re: An "extend" operator is a natural companion to <|
> "owns" is ambiguous -- could still delegate. Can't use "extends", the
> direction is wrong (and "extendedBy" is right out!). How about
>
> let b = B copies {...};
>
> ?
>
> There must be a better contextual keyword...
How about
increment copyto obj
Then lhs and rhs are switched, though. What is the best description of what
this operator does? “Copy the own properties of an increment to an object”?
Whatever word(s) are chosen as an infix operator should reflect such a
description. “Extend” and even “increment” do not sound descriptive enough to
me.
More ideas:
obj <-copy- increment
obj from increment
obj loads increment
obj imports increment
increment to obj
increment increments obj
increment overrides obj
--
Dr. Axel Rauschmayer
[email protected]
twitter.com/rauschma
home: rauschma.de
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss