rstacruz/js2coffee — Issue #101: Postfix conditionals and method calls without braces
Author: jonleighton
Created: 2011-10-12 13:19:14+00:00
State: open

The following Javascript:

``` javascript
if (foo) {
this.send({foo: "bar"})
}
```

Gets converted to:

``` coffeescript
@send foo: "bar" if foo
```

Which gets converted back to Javascript as:

``` javascript
this.send({
foo: foo ? "bar" : void 0
});
```

Which is semantically different from the original - it returns in a method call where one did not previously happen.