4 ms·
I was burned by this as well. The breaking code would look like this: ``` a = (@arg) -> console.log(arg) # Used to print arg. # Now needs to be:
by bmh_ca 12y ago
I was burned by this as well.
The breaking code would look like this:
```
a = (@arg) ->
console.log(arg) # Used to print arg.
# Now needs to be:
console.log(@arg)
```
The problem was particularly exacerbated on our end by using `coffeeify`, which includes the latest CoffeeScript - so one could not easily pin to a particular version of CoffeeScript (i.e. 1.8.x).
This brings into question, for me, the decision making process for CoffeeScript. So the migration begins.
Contrast, lodash which just had a bunch of backwards-incompatible changes. They changed its version from 2.x to 3.x, so we all head a heads up. Lots of things broke, but we knew to look for them.
- untog 12y agoWhy were you referencing a variable that doesn't exist? Your code shows a bug in CoffeeScript, which was fixed.