jashkenas/coffee-script — Issue #2179: Keyword arguments breaking objects
Author: neocotic
Created: 2012-03-06 10:36:22+00:00
State: open

Supposedly this is bad. Why?

``` coffeescript
getInfo 'fubar', yes
object =
foo: getInfo 'foo', 0
bar: getInfo 'bar', 'yes'
fu: getInfo 'fu', yes
baz: getInfo 'baz', yes, 1
```

**PARSE ERROR ON LINE 5: UNEXPECTED ','**

I also get this error for line 6 if line 5 is *fixed*. The workaround I'm currently using is to wrap the arguments in parenthesis. This isn't a big problem but does ruin the code style slightly.