Why I switched back from CoffeeScript to Vanilla JS
And there are several reasons:
- Documentation generators work better with the C comment syntax
- Future Compability: EcmaScript 5, 6 etc. fix a lot of the problems CoffeeScript fixes in a native way. Who knows whether CoffeeScript will be as fast as V8 in implementing new features
- Consistent syntax for calling functions: foo 1337 for foo(1337) is cool but foo(1337).bar ‘leet’ ain’t
- Semicolons aren’t necessary in vanilla js, just add them in front of lines that start with a ( open bracket, like ;(
- With Coffee constructs like Class etc. available it is tempting using them when a custom prototype system would be more appropriate
- Not all tools and editors work with CoffeeScript as good as with Vanilla JS
- If commented thoroughly the C syntax is just as readable and light as coffee’s syntax
What I will miss:
- Anonymous function syntax
- String Interpolation
- Object declaration without commas