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


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to