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
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to