Proposal: Selector/Select Expression

Bob Myers rtm at gol.com
Thu Jun 27 20:47:37 UTC 2019


Not exactly, since the optional chaining operator is `?.` with no space in
between.

On Thu, Jun 27, 2019 at 1:37 PM Simon Farrugia <simonfarrugia26 at gmail.com>
wrote:

> Also, without a leading token, a selector expr with the optional chaining
> operator inside a ternary operator would be ambiguous.
>
> ```
>
> const contactSelector = true ? .contacts.email : .contacts.phone;
>
> ```
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190627/d0c8f915/attachment.html>


More information about the es-discuss mailing list