Re: Null-safe property access in interpolated strings
| From: | Björn Larsson | Date: | Mon, 10 Aug 2020 21:43:04 +0000 |
| Subject: | Re: Null-safe property access in interpolated strings | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111447@lists.php.net to get a copy of this message | ||
Hi Ilija,
Den 2020-08-10 kl. 17:06, skrev Ilija Tovilo:
Hi NikitaI second Nikitas opinion that consistency is important here. One shouldn't need to spend time as an PHP end user wondering why we have a special case that doesn't work like the rest! Good luck with merging. r//Björn LSo for the sake of consistency let's merge this then. As mentioned, the BC break should be very very small. A few people have mentioned they didn't expect it to work but when asked again they didn't feel strongly about it. Unless there are objections I will merge this tomorrow. A review of the PR would also be welcome. IlijaI think if it can be reasonably fixed it probably would make sense for consistency and WTF-avoidance if anything.Agree. I don't think the question of whether it is useful should come into this, it's a matter of language consistency. There could be some leeway here if we say that we have plans to deprecate the "$x->y" syntax in the future anyway and don't want to extend it anymore -- but I don't believe we have such plans at the present time.