Re: deprecation status of $str{42} versus $str[42]
| From: | Chris Stockton | Date: | Tue, 17 Jun 2008 16:43:32 +0000 |
| Subject: | Re: deprecation status of $str{42} versus $str[42] | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38326@lists.php.net to get a copy of this message | ||
On Tue, Jun 17, 2008 at 2:21 AM, Steph Fox <steph@phparch.com> wrote:
>
> Hi,
>
> Seems like you are missing some PHP programming basics. Strings are not an
>> array of chars, please go back to making ping pong in java c# or whatever
>> other little comp sci classes you took. PHP is not any of them.
>> Foreach("foo" as $key => $char) {}, after learning, please be quiet and
>> let
>> andi answer my question on his ideas he had for improvements to the
>> existing
>> and once favored syntax.
>>
>
> Please, keep this kind of personal abuse off the core development list. It
> adds absolutely nothing to the debate, and we're all very, very bored with
> it
I was trying to have a productive discussion on the topic, his response is
the one that added no value, was nothing but a troll.
Anyways, I like the fact my response brought up iterating strings, which I
think as far as code points or bytes etc, go, really its the same problem as
$str{0} on a Unicode string, im sure PHP6 will fix this with Unicode
strings. Still, I wish this was not being removed I have a lot of legacy
code around that uses it and am sure many companies do as well, and it has
always felt more correct _to_me_ but it is what it is. Case closed I guess.
-Chris