Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: