News for hackers. Stuff that matters.
Re:Announcing CoffeeScript 2 by twykke on Monday September 18, 2017 @01:29PM (#15277780)
i also don't use CoffeeScript because of any 'feature' it has over standard JS but instead because of its concise but expressive syntax. it's less about what it does have/do, and more about what it doesn't have/do.

some small aspects of CS i forgo because they (in my opinion) are a little too concise such that they sacrifice readability, but all in all it has my favorite syntax of any language.

Re:Announcing CoffeeScript 2 by ralmidani on Monday September 18, 2017 @01:39PM (#15277879)
Exactly.

I personally think calling .map() on an array is more readable than an array comprehension. But since CS is "just JavaScript" you are free to use the native JS array methods (and even more elegantly, at that).

Re:Announcing CoffeeScript 2 by twykke on Monday September 18, 2017 @01:41PM (#15277904)
list comprehensions was exactly what i was talking about :) however i replace them with lodash and ramda, which benefit enormously from CS's lambda syntax
Re:Announcing CoffeeScript 2 by atom-morgan on Monday September 18, 2017 @02:15PM (#15278173)
I wish this line of thinking was more common. So many people feel forced to use parts of a language when you don't have to.
Re:Announcing CoffeeScript 2 by sgustard on Monday September 18, 2017 @07:27PM (#15280588)
CS breaks the ternary ?: operator which is a big headache for me.
Re:Announcing CoffeeScript 2 by igl on Tuesday September 19, 2017 @05:07AM (#15282922)
Everything is an expression. Including if statements. There is no need of such syntax abominations.
Re:Announcing CoffeeScript 2 by jashkenas on Tuesday September 19, 2017 @10:20AM (#15284813)
Bingo. Remember when you first first learned the ternary operator syntax? I recall thinking something along the lines of, "Wow, that's cryptic!"

    result = if condition then success else failure
Re:Announcing CoffeeScript 2 by sgustard on Thursday September 21, 2017 @11:35AM (#15304495)
Sure, but other coffee operations like x||=5 are also abominations. Brevity and purity are often at odds and the choices made by a language can be arbitrary.