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

Kevin Smith khs4473 at gmail.com
Wed Jan 2 11:38:15 PST 2013


> Here I part company only on syntax:
>
>     r = o?.p.q       {p?: {q: r}} = o
>

Interpreted this way, any additional irrefutable markers in a subtree under
a refutable identifier become redundant, correct?

    r = o?.p?.q    { p?: { q?: r } } = o

Using Nil, the "q" in all cases is "present" (evaluating to Nil), so the
"?" in "q?" has no effect.  Is that right?

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130102/e7f13422/attachment-0001.html>


More information about the es-discuss mailing list