Re: [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets

From: Date: Thu, 04 Jul 2019 22:26:18 +0000
Subject: Re: [RFC][VOTE] Deprecate curly brace syntax for accessing array elements and string offsets
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-106146@lists.php.net to get a copy of this message
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

« previous php.internals (#106146) next »