fail-fast object destructuring (don't add more slop to sloppy mode)

Kevin Smith khs4473 at
Mon Jan 7 06:53:22 PST 2013

> Sure, but that's crying out for a shorter form that avoids repeating o.
> Note also that in the expression language, |o| might be a longer expression
> (even, gasp, with embedded effects) that you would not want to repeat.

I see.  I think overloading the lone "?" is grammatically sketchy, though...

> Whatever we do for existential operators, destructuring in ES6 with
> refutable-by-default patterns wants something at all levels, including
> outermost -- or so I argue.

Maybe so.  Again, overloading a lone "?" outside of the pattern itself
makes me feel itchy.

Retiring back to the thinking cave for now...

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list