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

Kevin Smith khs4473 at gmail.com
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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130107/7ecf9aef/attachment.html>


More information about the es-discuss mailing list