arrow syntax unnecessary and the idea that "function" is too long
rfobic at gmail.com
Sun May 8 11:34:13 PDT 2011
I'm really happy that arrow syntax proposal was made and thanks a lot Brendan!!
I'd like to point out that coffeescript has a huge success and in the end it's just syntax sugared js. I think this is quite good proof that syntax change like this is more then welcome.
Another thing I'd like to point out that arrow function is not just saving keystrokes of typing `function` and `return`, but also gives even bigger win IMO via `=>` when binding of `this` pseudo variable is desired. This case BTW was not addressed by `#`. Even though `->` is one more char in comparison to `#`, `=>` is much less then `.bind(this)`, in addition having both -> and => feels just natural!
Address: 29 Rue Saint-Georges, 75009 Paris, France
On Sunday, 2011-05-08 at 19:09 , Rick Waldron wrote:
> This is a super simple, first-pass, rough-draft, not-too-serious, request-for-comments...
> On Sun, May 8, 2011 at 1:51 PM, Faisal Vali <faisalv at gmail.com> wrote:
> > On Sun, May 8, 2011 at 4:04 AM, Jorge <jorge at jorgechamorro.com> wrote:
> > > On 08/05/2011, at 05:52, Faisal Vali wrote:
> > >
> > >> (...) I find the
> > >> C-based-syntactic roots than the preprocessor-tainted '#' (...)
> > >
> > > Consistent ?
> > >
> > > -> in C has a *totally* different meaning !
> > Yes, but that is why I alluded to a syntactic commonality and not a
> > semantic one.
> > But, I can see how the disparity in semantics might bother some programmers.
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss