3 ms·
Fast arrow functions in Firefox 31
- scotth 12y agoThis is all well and good, but am I correct in saying that we won't be able to use native arrow functions for years. It's kind of tough to be excited about.
- kevingadd 12y agoThis is true for pretty much every ES6 feature - lots of them have shipping implementations in Firefox and/or Chrome, but they've all been hidden behind preferences for years, or are slightly out of sync with the spec, or are half-implemented, etc... Notable examples are Map, Set, and WeakMap, all of which have been behind a Chrome preference for years. In particular the lack of WeakMap makes entire classes of applications much harder to implement in Chrome than Firefox.
- pornel 12y agoHopefully improvements like this shipping now will pressure other vendors to catch up. Apart from Apple all major players have short release cycles and automatic updates now, so maybe it won't be that bad.
- paraboul 12y agoFWIW, the real (syntax) name of "=>" is "Fat Arrow". edit: since I get downvoted, source : https://www.google.com/#q=fat+arrow+es6 https://www.google.com/#q=fat+arrow+es6
- deleted 12y ago[deleted]
- evilpie 12y agoNo, see the spec: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-arrow-function-definitions https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ar...
- paraboul 12y agoOk the draft calls it "arrow function" (how fat arrows are used). I'm talking about how is (some) languages, "=>" is referred as "fat arrow" or "right arrow" as opposed to "->" thin arrow. I mean, I don't invent anything : https://bugzilla.mozilla.org/show_bug.cgi?id=979923 https://bugzilla.mozilla.org/show_bug.cgi?id=979923 https://www.google.com/search?sitesearch=bugzilla.mozilla.org&q=%22fat+arrow%22 https://www.google.com/search?sitesearch=bugzilla.mozilla.or...
- bryanlarsen 12y agoIf they are called fat arrow, then "fast arrow" is a neat pun and the title is good. If they aren't called fat arrow, then the title is good.
- cpeterso 12y agoYou can track browser's ES6 support here: http://kangax.github.io/es5-compat-table/es6 http://kangax.github.io/es5-compat-table/es6 The site's maintainer, kangax, on Firefox's recent ES6 work: https://twitter.com/kangax/status/456219547968614400 https://twitter.com/kangax/status/456219547968614400 Jeez, @Mozilla adding ES6 features faster than I can update compat table #firstworldproblems