Re:Show HN: Decaffeinate converts CoffeeScript projects to m...
by devoply on Monday June 19, 2017 @04:52AM
(#14585464)
Yeah you are right. I was making a general point in the case of coffee script perhaps it's irrelevant. I don't write it so I am not in the know.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m...
by carc1n0gen on Monday June 19, 2017 @06:23AM
(#14585803)
Except sass is a fully backwards compatible superset to CSS, and coffescript is definitely not that to JavaScript.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m...
by sghiassy on Monday June 19, 2017 @06:04PM
(#14590798)
Really? Are you sure? If CoffeeScript isn't fully compatible with JS then what is it? I mean at some point it has to go through a JS interpreter to run.
Re:Show HN: Decaffeinate converts CoffeeScript projects to m...
by carc1n0gen on Wednesday June 21, 2017 @10:48AM
(#14604233)
I created a coffee file called list.coffee with:
var list = [1, 2, 3, 4, 5];
When I run `coffee list.coffee` I get: /home/****/Code/coffee/thing.coffee:1:1: error: reserved word 'var'
var list = [1, 2, 3, 4, 5];
^^^
The coffeescript interpreter is standalone and does not turn it in to JS.
If you program in SASS and feel out of touch touch with CSS, then I feel you've lost your way. In the same vein, if a CoffeeScript developer, needs "significant" time and investment to transition to ES6, then I would think there is a significant erosion in that developer's understanding of CoffeeScript's ES5 underpinnings.