Open davidbau opened 10 years ago
See the discussion at https://groups.google.com/forum/#!topic/coffeescript/yUPsELGPCQo - there are several other syntax traps noted there.
Also, they point out CoffeeLint: https://github.com/clutchski/coffeelint - a good approach to investigate would be to integrate CoffeeLint into the ACE coffeescript mode (to provide warnings) and then add what we need to CoffeeLint.
The big advantage of CoffeeScript - optional parentheses for function invocation - is also a big disadvantage when it comes to allowing ambiguous syntax that does not run the way it reads on the screen.
We should improve the ACE editor coffeescript mode to add warnings in the following situations: