4 ms·
At work we started node with node 0.6, CS was nice at the time, it would bring cool stuffs such as arrow functions. Nowadays we are using Typescript, and we lov
by forty 9y ago
At work we started node with node 0.6, CS was nice at the time, it would bring cool stuffs such as arrow functions. Nowadays we are using Typescript, and we love it.
To be honest, I am quite happy we are getting rid of CS, the lake of variable declaration specific syntax (as opposed to assignment statements) is really a big bug of the language IMO which can lead to really awful bugs in your code if you are not careful.
We have been using https://github.com/decaffeinate/decaffeinate https://github.com/decaffeinate/decaffeinate to help getting rid of our CS files, it works quite well.