with

Axel Rauschmayer axel at rauschma.de
Thu Nov 17 05:55:28 PST 2011


>>>>    obj with { foo: 12 } with { bar: 13 } with { baz: 17 }
>> 
>> I like the idea! As it is syntactically different in this role, errors should be easy to spot.
>> 
>> But I think `with` “points in the wrong direction” (object `obj` *with* prototype `proto`). That is, to me, it suggests a pointer going from prototype to object.
> 
> Well, ultimately the directionality is arbitrary. In my proposal it's "prototype `obj` *with* instance `blah`". This results in LTR whereas the other way ends up RTL. JS is built around English, so LTR seems more appropriate (with all due sympathy to our Hebrew-speaking programmers!).

Going from
     P <--has-prototype-- o
to
     P --has-instance--> o
is fine with me, but it’s not the directionality of [[Prototype]].

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111117/0c922693/attachment.html>


More information about the es-discuss mailing list