Existential Operator / Null Propagation Operator

Waldemar Horwat waldemar at google.com
Thu Oct 29 20:04:07 UTC 2015


On 10/29/2015 12:19, Laurentiu Macovei wrote:
>   `foo?.bar` and `foo?['bar']` syntax would work too.

No.  It would break existing code:

   x = foo?.3:.5;

   x = foo?[a]:[b];

On the other hand, turning .. into a token should be fine.

     Waldemar



More information about the es-discuss mailing list