Re: Re: PDM Meeting Notes
| From: | Jani Taskinen | Date: | Thu, 24 Nov 2005 08:16:39 +0000 |
| Subject: | Re: Re: PDM Meeting Notes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20286@lists.php.net to get a copy of this message | ||
On Thu, 24 Nov 2005, Jakub Vrana wrote:
4.5 Cleanup for {} vs. []It was already discussed. Many people would be confused from documentation statement "[] was marked as deprecated in 4.0.6 - 5.1 but then suddenly {} was deprecated instead and removed in 6.0" and many scripts would refuse to work due to this.
That's why we wanted to add the E_STRICT warning about it..
But I'd rather have this whole issue changed back to what
it really was about: separating [] and {} altogether.
We could start with making it an E_ERR..erm..E_STRICT notice
if you use {} with arrays or [] with strings. And really separate
them in PHP 6. But does it make any sense?
Removing {} is ultimately the right thing to do, whatever the
anti-purists may think. "{$str{1}}" vs. "{$str[1]}", you decide..
--Jani