dk00 / livescript-next

Enable latest ES features for LiveScript
https://lsn.netlify.com/
The Unlicense
39 stars 3 forks source link

Use const by default #15

Open danielo515 opened 6 years ago

danielo515 commented 6 years ago

Hello again,

Thank you very much for this awesome project, I'm really enjoying it. It would be awesome if the compiled output contains constants whenever possible. Currently you use let by default, which is fine for many cases, but with my style of programming I rarely need to mutate a variable, and when it happens it's usually an error.

There are eslint rules to detect when a variable is never re-assigned and they suggest you to use const, so similar logic could be used.

What do you think ?

Regards