3 ms·
>I don't understand the trend to move from Coffeescript to ES6. ES6 is supported natively, it's an actual standard not a language a single person came with, it
by coldtea 9y ago
>I don't understand the trend to move from Coffeescript to ES6.
ES6 is supported natively, it's an actual standard not a language a single person came with, it avoids a build step, it has all of Coffeescript features and more by this point, and Coffeescript's momentum has slowed. Seems a no-brainer.
And as for concision, ES6 seems just as concise. At worse you need an extra } or so, which I like to have anyway.
- uranian 9y ago> it has all of Coffeescript features and more No! It seems you've never learned Coffeescript well enough to know the differences, just like too many other ES6 proponents.
- coldtea 9y agoI learned Coffeescript well enough to not care for the differences. There's nothing especially interesting Coffeescript has over ES6/7.
- o_____________o 9y agoI miss the existential operator like the deserts miss the rain foo?.bar?().baz?.boo
- MrLeap 9y agoTruly. That operator has most of the gravity that pulls me towards coffeescript. Lodash things, like _.isNil staunch the bleeding, but it's just.. not the same. I wrote coffeescript for 3 years, and the first 2 or 3 months was a frustrating learning curve. By the end of that job I really drank the koolaid. Coffeescript can be blissful. The complaints about invisible delimiters and stuff resonated with me for the first 2 weeks, but then I just learned it like you learn anything. If you are unsure what's going to happen, add extra parenthesis. I kept a window with js2.coffee on it so I could paste uncanny snippets while I was getting up to speed. After I got over the curve I stopped needing it. I think it was more frustrating in the beginning than learning most things because I knew JS pretty well prior and it felt like I was throwing my experience out the window. I'm glad I did it though. Writing coffeescript was really quite pleasant. Now regular javascript has jumped forward a bit and has somethings coffeescript doesn't, I still feel like the one true web language exists somewhere between them. I'm leading a project right now and every couple of days I get that coffeescript itch. Caffeine is hard to put down once you're addicted.
- o_____________o 9y ago! https://github.com/babel/babel/pull/5813 https://github.com/babel/babel/pull/5813
- MrLeap 9y agoJust found this. https://github.com/rongierlach/babel-plugin-syntax-exists https://github.com/rongierlach/babel-plugin-syntax-exists not the worst workaround in the short term. Better than lodash's _.get but worse than coffeescript. :P