News for hackers. Stuff that matters.
Re:Replace CoffeeScript with ES6 by itistoday2 on Thursday January 29, 2015 @09:53PM (#8970234)
Some reasons why I will stick with CS:

* Optional braces and parenthesis. Results in visually cleaner and more compact code, especially when dealing with large objects.

* Requiring backticks to do string interpolation seems like an ugly hack.

* CS uses dots to slice and splice ranges:

    host?.split(".")[-1..][0] == "dns"
BTW, notice in the example above two additional CS features that don't exist in ES6:

* The existential operator `?` soaks up null/undefined references.

* `==` is compiled to `===`

* Expressions always return a value in CS, just like in Lisp, so no need to explicitly `return`

* Block strings and regular expressions.

And more: http://coffeescript.org/

Plus, CS just seems like it's always a step ahead of JS. In using it, you can code in a more intelligently designed language that enforces best-practices better than JS does. Doing so supports diversity, innovations (after all, many of these ES6 features are obviously inspired by CS).

Why abandon such a wonderful language when it still has so much to offer, and at the same time seems to be driving innovation in JavaScript itself?

Re:Replace CoffeeScript with ES6 by endemic on Friday January 30, 2015 @12:00AM (#8970528)
I looked at 6to5 and started re-writing a few files of CoffeeScript in ES6. First impression was not great. I'd forgotten how many curly braces are required in JS. ES6's fat arrow is just not as nice as CoffeeScript's (required parentheses, no option for thin arrow). I'll no doubt try it out again soon, but I'm not a convert yet.
Re:Replace CoffeeScript with ES6 by nawitus on Friday January 30, 2015 @10:00AM (#8972287)
ES6 fat arrow syntax doesn't require parentheses if there is only one function parameter. If there are more, parentheses make the code more readable in my opinion.
Re:Replace CoffeeScript with ES6 by stn on Friday January 30, 2015 @12:12AM (#8970553)
'is' is also very cool: makes it harder to write '=' instead of '=='
Re:Replace CoffeeScript with ES6 by o_____________o on Friday January 30, 2015 @12:02PM (#8972932)
> The existential operator `?` soaks up null/undefined references.

This seemingly minor feature is so huge for me. Accessing deep objects?.is?.a?.horrible?.pain?.sometimes?()

Re:Replace CoffeeScript with ES6 by T-hawk on Friday January 30, 2015 @06:04PM (#8975075)
If you're accessing objects that deeply, something is breaking the Law of Demeter about locality of reference and looseness of coupling.

It's a syntactic convenience, but it leads to questionable patterns. Do you really want to silently collapse the hierarchy of whatever was null? I'd rather identify it and fail with a specific message or behavior rather than generically.

Re:Replace CoffeeScript with ES6 by agumonkey on Friday January 30, 2015 @12:33AM (#8970588)
I wonder if CS will evolve further now that ES6 is about to land.