jashkenas/coffee-script — Issue #2176: Object extension literal
Author: itrelease
Created: 2012-03-05 20:16:05+00:00
State: open

Never give up ;) add object extension literal (http://wiki.ecmascript.org/doku.php?id=harmony:object_literals#object_extension_literal) so now it's possible to do this thing:

kids =
brother1:
name: "Max"
age: 11

kids .=
sister:
name: "Ida"
age: 9
brother2:
name: "Neal"
age: 10

and cs generate this code:

```
(function() {
var kids;

kids = {
brother1: {
name: "Max",
age: 11
}
};

kids["sister"] = {
name: "Ida",
age: 9
};
kids["brother2"] = {
name: "Neal",
age: 10
};

}).call(this);
```