Re: Re: Nullsafe Types
| From: | Pierre | Date: | Fri, 25 Jun 2021 07:17:30 +0000 |
| Subject: | Re: Re: Nullsafe Types | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115135@lists.php.net to get a copy of this message | ||
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