Le 25/06/2021 à 08:58, Eugene Sidelnyk a écrit :
I would really like to hear your thoughts on this.

Hello,

As being a user of more than one language, in which at least 2 have the same nullsafe operator (PHP and TypeScript), I'm used to this syntax, it's clear about the intent at the cost of a single char.

It places the nullsafe intent where you actually use it, instead of making it implicit on a whole composition chain, which would then create nullsafe behavior to be "always on" in the whole composition chain and very (very) hard to debug.

I think this would create too many side effects.

Moreover, your proposed syntax is very hard to read, in my opinion, and will probably cause confusion.

Regards,

--

Pierre

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to