Proposal: Selector/Select Expression

guest271314 guest271314 at gmail.com
Fri Jun 28 00:08:30 UTC 2019


The space character/no space character would probably only be a limiting
factor for golf. The differennces should be clearly explained (at each
proposal, eventual specification) for disambiguation nonetheless.

On Thu, Jun 27, 2019 at 8:48 PM Bob Myers <rtm at gol.com> wrote:

> 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;
>>
>> ```
>>
>>
>> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190628/b548af2b/attachment.html>


More information about the es-discuss mailing list