jashkenas/coffee-script — Issue #1871: method k:v if condition
Author: gravof
Created: 2011-11-16 03:33:32+00:00
State: open

`method obj if condition` is compiled into

if (condition) method(obj);

However, `method k:v if condition` is compiled into

method({
k: condition ? v : void 0
});

I guess `method(k:v) if condition` is far more frequently intended than `method k: (v if condition)`. Is it reasonable that we change this precedence?