(Map|Set|WeakMap)#set() returns `this` ?
nathan.wall at live.com
Wed Dec 5 07:06:33 PST 2012
> Date: Tue, 4 Dec 2012 11:03:57 -0800
> From: brendan at mozilla.org
> Subject: Re: (Map|Set|WeakMap)#set() returns `this` ?
> Allen Wirfs-Brock wrote:
> > It's less clear which is the best choice for JS.
> Cascading wants its own special form, e.g., Dave's
> mustache-repurposed proposal at
> so one can write cascades without having to be sure the methods involved
> follow an unchecked |this|-returning convention.
I really like this possibility. Is there any way of the monocle-mustache making it into ... say, ES7?
If so, it would seem wrong to ever return `this`. Sounds like you get the best of both worlds to me!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss