Allen Wirfs-Brock (2013-08-09T23:03:37.000Z)
On Aug 9, 2013, at 2:58 PM, Domenic Denicola wrote:

> Woah. I was sad about the loss of refutable destructuring, i.e. I would rather have had it by default, but this idea is a pretty brilliant way to make lemonade out of lemons. I would *love* a way to declaratively specify required parameters.


const MUST = () => {throw TypeError("Missing required parameter"};

function foo (a=MUST(), b, c) {...}

Allen
domenic at domenicdenicola.com (2013-08-19T04:56:48.474Z)
On Aug 9, 2013, at 2:58 PM, Domenic Denicola wrote:

> Woah. I was sad about the loss of refutable destructuring, i.e. I would rather have had it by default, but this idea is a pretty brilliant way to make lemonade out of lemons. I would *love* a way to declaratively specify required parameters.

```js
const MUST = () => {throw TypeError("Missing required parameter"};

function foo (a=MUST(), b, c) {...}
```