News for hackers. Stuff that matters.
Re:Fat arrow functions in Javascript by jwoah12 on Friday September 20, 2013 @12:01PM (#6418543)
Is this syntax part of ECMAScript 6? I.E. will it eventually be supported by all browsers?
Re:Fat arrow functions in Javascript by janekk on Friday September 20, 2013 @05:09PM (#6420520)
If you want to use it now and get full browser support, you can use the TypeScript compiler, which will compile into ES3 or ES5 targets. It also supports ECMAScript 6's classes syntax.

It's pretty neat to use this tech now on production sites and not having to worry about browser support.

http://en.wikipedia.org/wiki/TypeScript#ECMAScript_6_support

Re:Fat arrow functions in Javascript by robcee on Friday September 20, 2013 @12:07PM (#6418587)
it is part of ES6 and should make it to V8 eventually. Soon, I hope!
Re:Fat arrow functions in Javascript by pjmlp on Friday September 20, 2013 @01:43PM (#6419275)
Except the web is much more than V8.
Re:Fat arrow functions in Javascript by marijn on Friday September 20, 2013 @03:27PM (#6419942)
So it is. Hence the ECMA6 mention.
Re:Fat arrow functions in Javascript by pjmlp on Friday September 20, 2013 @03:43PM (#6420027)
Sure, the problem is getting it to the mobile devices out there.
Re:Fat arrow functions in Javascript by v413 on Friday September 20, 2013 @04:41PM (#6420380)
Node.js is the keyword here, not the web.
Re:Fat arrow functions in Javascript by pjmlp on Friday September 20, 2013 @05:02PM (#6420485)
For me the web is the only place I bother to use JavaScript.
Re:Fat arrow functions in Javascript by jwoah12 on Friday September 20, 2013 @01:25PM (#6419138)
Good to hear!