jashkenas/coffee-script — Issue #1985: Idea: Object constructors enhancement
Author: camellia0x
Created: 2011-12-29 18:43:31+00:00
State: open

I would like to be able to write syntax like:

```
fuse obj
,src.ip
,(src):true
```

But instead I must currently write it like:

```
temp = new Object
temp[src] = true
fuse obj
,src.ip
,temp
```

I hope this can be improved. Also, fuse is written like this, if it helps:

```
fuse = (obj, index, obj2) ->
unless obj[index] then obj[index] = obj2
else for x of obj2
obj[index][x] = obj2[x]
```