3 ms·
The braces are there because JavaScript's object literals are already pretty nice. But it would certainly be an interesting feature, if assigning to a block imp
by jashkenas 17y ago
The braces are there because JavaScript's object literals are already pretty nice. But it would certainly be an interesting feature, if assigning to a block implied an object literal.
obj:
prop: value
prop2: value2
edit: I've opened a ticket for this, here:
http://github.com/jashkenas/coffee-script/issues/issue/146 http://github.com/jashkenas/coffee-script/issues/issue/146