On Oct 30, 2011, at 5:55 PM, Axel Rauschmayer wrote:
>> The only thing I find off the mark is the typography of <|. In light of
>> this, and of the anti-grawlix reaction among many people, could we revisit
>> an infix operator used in restricted productions with [no LineTerminator
>> here] on the left of the operator contextual keyword?
>
> I hope this is not just in deference to a few vocal opponents.
That's not the way to approach this. You could be among the few vocal
*pro*ponents of <| -- do we need a statistically significant and valid survey?
There are plenty of fonts in which the triangle appearance is ugly or lost.
There are people who object independent of fonts to JS growing line-noise hair
at its advanced age. These are both worth considering. They can't be dismissed
with "few" and "vocal".
>> Likely keywords include 'proto' (but 'protos' seems better English given the
>> LHS being the prototype object), or my current best shot: 'beget'.
>>
>> let obj = base beget {a: 1, b: 2}
>> let arr = base beget [p, q, r]
>> let fun = base beget function (...args) { ... }
>> let re = base beget /(\w+)\s+(\w)+/g
>
>
> How about subsumes (as the inverse of “extends”)?
>
> let obj = base subsumes {a: 1, b: 2}
> let arr = base subsumes [p, q, r]
> let fun = base subsumes function (...args) { ... }
> let re = base subsumes /(\w+)\s+(\w)+/g
That doesn't work in two ways:
1. proto-linking is not subsumption in any set theoretic or dictionary ("To
have as a part") sense. base does not have as a part the literal on the right.
Rather, proto-linking is JS's differential inheritance solution.
2. "subsumes" is too long and novel. "beget" has history thanks to Crock. We
could even have an Object.beget as the easy-to-use Object.create analogue -- it
would have to copy its second parameter in general (it couldn't restrict the
second parameter to be passed as a literal).
/be
>
> A bit long, but reads nicely.
>
> --
> Dr. Axel Rauschmayer
> [email protected]
>
> home: rauschma.de
> twitter: twitter.com/rauschma
> blog: 2ality.com
>
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss