jashkenas/coffee-script — Issue #1818: Unexpected parse error
Author: zah
Created: 2011-11-03 14:58:58+00:00
State: open

Consider this minimalistic example:

``` cofeescript
obj =
field: _.map list, (item) ->
item
```

It results in ```Parse error on line 2: Unexpected ',' ```

To work around the issue, one has to rewrite the code like this:

``` cofeescript
obj =
field: _.map(list, (item) ->
item)
```
...which works, but arguably it's inconsistent with the syntax of the language elsewhere.