Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106146 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95311 invoked from network); 5 Jul 2019 01:07:46 -0000 Received: from unknown (HELO v-smtpout2.han.skanova.net) (81.236.60.155) by pb1.pair.com with SMTP; 5 Jul 2019 01:07:46 -0000 Received: from [192.168.7.8] ([213.64.245.126]) by cmsmtp with ESMTPA id jABDhjNqeUYHfjABDhBO5Q; Fri, 05 Jul 2019 00:26:16 +0200 To: Andrew Gromov , Peter Bowyer References: <1562149108.866677.18420.33348@mail.rambler.ru> Cc: PHP internals Message-ID: Date: Fri, 5 Jul 2019 00:26:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: sv X-CMAE-Envelope: MS4wfB06Dr09+vpgHF8BEq7bCa8ufYMjsMJ5IOnuxpuvKc0531ohTsk81naUlKF4qWl36TEVkkinOfEHWIbYH1fx5ZbFF1/1mRR7a0gb7CgXMvxiYMhRWuZF 3yjBzBHjZW/dmQ+OKkpY8kx3GM77/ZnKuK89kN9CQzU4MdXbmy9NzIjQe1izS9sWtj6dTcm4jTqGQwmSddN8yaHcQMjTmTyfuedYqDFFAHnUx4zxxRo/afYs sEcwVH8MznqJvvPEZGA7Lw== Subject: Re: [PHP-DEV] [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2019-07-03 kl. 17:25, skrev Peter Bowyer: > Hi Andrey, > > Thanks for taking the time to push forward this RFC. > > I found the earlier discussion at https://externals.io/message/104744, > which I hadn't seen. Like others, I would have chosen to keep {} for string > offsets to make it clearer, though I have not used {} in my code for a > decade. Was any consideration given to a split vote, voting on the array > and string deprecations separately? > > For others interested, the history of this deprecation going back to 2005 > is found at https://externals.io/message/38153 > > Peter > Hi, I have the same question regarding split vote. In my eyes the array case is a no-brainer, but for string access maybe not... r//Björn L