Re: deprecation status of $str{42} versus $str[42]
| From: | Lars Strojny | Date: | Tue, 10 Jun 2008 23:13:02 +0000 |
| Subject: | Re: deprecation status of $str{42} versus $str[42] | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38155@lists.php.net to get a copy of this message | ||
Hi Markus,
Am Mittwoch, den 11.06.2008, 01:04 +0200 schrieb Markus Fischer:
[...]
> I don't get this deprecation and thus the forced code change at all.
> Considering the amount of code using this style, see
>
> http://www.google.com/codesearch?as_q=\%24[a-z][a-z0-9_]*{[^}]%2B}&hl=en&as_lang=php
> and given that no PHP code change has been done I would rather suggest
> removing the chase for deprecation in this case and remove this from the
> documentation and let the syntax exist that way as long as PHP lives.
I agree, unless there is a sane technical reason (problems with the
parser, an ambiguity I overlook), I would rather prefer not to go on
with its deprecation. It even allows to enforce [] for array- and {} for
string offsets in the coding style which helps to distinguish both.
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc