How about replacing <| with ->

Axel Rauschmayer axel at rauschma.de
Sat Mar 3 09:13:17 PST 2012


OK, forget that. You could still produce left-hand sides...

On Mar 3, 2012, at 17:57 , Axel Rauschmayer wrote:

>> Speaking of compositions though, I can't recall if it was ever discussed whether this operator can be chained, and if so, whether it associates. I don't see too much value in this since references to any intermediate constructions would only be available by walking the proto chain. I can't think of a great use case, just curious if it's been considered and/or rejected?
> 
> If it was chainable you could use it to do poor man’s mixins. But the requirement that the rhs be an object literal prevents chaining. Otherwise, you would have to define some kind of clone operation for intermediate lhs operands.
> 
> 
> -- 
> Dr. Axel Rauschmayer
> axel at rauschma.de
> 
> home: rauschma.de
> twitter: twitter.com/rauschma
> blog: 2ality.com
> 

-- 
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/20120303/58d979da/attachment-0001.html>


More information about the es-discuss mailing list