Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Warning for common CoffeeScript pitfalls #24
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:
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.