Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111447 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29806 invoked from network); 10 Aug 2020 22:43:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Aug 2020 22:43:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 22D9E180502 for ; Mon, 10 Aug 2020 14:43:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from v-smtpout3.han.skanova.net (v-smtpout3.han.skanova.net [81.236.60.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 10 Aug 2020 14:43:07 -0700 (PDT) Received: from [192.168.7.8] ([213.64.245.126]) by cmsmtp with ESMTPA id 5FZQkfGllxDlh5FZQkrC5s; Mon, 10 Aug 2020 23:43:05 +0200 To: Ilija Tovilo References: <24ce93f7-b5b2-fb63-6ea4-032c4e71f049@seld.be> Cc: PHP internals Message-ID: <2989c452-0c5a-432e-ce26-bc7248ba1fc3@telia.com> Date: Mon, 10 Aug 2020 23:43:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-CMAE-Envelope: MS4wfDonr6r7MannzII8EcbWyHg6sJKwOJmTjnZHfFXBkbbO2J0A5/+IZkrk0miBOc5odIfIQJzjnD8q2AUD/ME3fUNWf/bPBWl8UOzj+BA5aLw+IByeL3sc /fN161R77DPofGy2+Jdzg87cPfWYQ7Kod5GZ5XipShynwpwjtEwr8szneHGrnnEfxc/aRsFE0meQ5i/Svm6lt9u8j1g7DZhPKWr1NBBfbZPwjEUa/CJIb7ws Subject: Re: [PHP-DEV] Null-safe property access in interpolated strings From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Hi Ilija, Den 2020-08-10 kl. 17:06, skrev Ilija Tovilo: > Hi Nikita > >>> I 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. > So 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. > > Ilija I 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 L