jashkenas/coffee-script — Issue #1800: Defaults for Destructuring Assignment
Author: wavded
Created: 2011-10-24 15:11:05+00:00
State: open

### Idea

```coffee
options = { price: 30, markdown: 3.2 }
{ type = 'Create' , price, markdown } = options
console.log(type) #Create
```

### Motivation

For functions that take in multiple arguments, using an `options` argument has no simple way to make defaults for missing properties. However this could be helpful when destructuring anything. Thoughts?