News for hackers. Stuff that matters.
Re:Announcing CoffeeScript 2 by ddlsmurf on Monday September 18, 2017 @06:11PM (#15280137)
I'm not a big fan of the new =>, it means the arguments variable will have parent scope in => but not in ->, it kind of erodes into coffeescript's elegance/consistency imho, unless I'm missing something ?
Re:Announcing CoffeeScript 2 by rmetzler on Monday September 18, 2017 @08:02PM (#15280758)
I never used => but when JavaScript introduced the fat arrow and made it different from the fat arrow in CoffeeScript, this introduced a mental barrier for me. By definition, the JavaScript fat arrow is the important one to know.
Re:Announcing CoffeeScript 2 by DiThi on Tuesday September 19, 2017 @11:19AM (#15285387)
You can always add an splat to use instead of arguments:

    (args...) =>
Re:Announcing CoffeeScript 2 by ddlsmurf on Tuesday September 19, 2017 @01:59PM (#15287090)
Sure, but there used to be a strong performance advantage when using the arguments variable with function.apply, also editing arguments' values affected named parameters' values (not sure that's desirable, but you know, semantics)