Re: Negative string offsets
| From: | Arvids Godjuks | Date: | Thu, 17 Apr 2014 18:13:04 +0000 |
| Subject: | Re: Negative string offsets | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73730@lists.php.net to get a copy of this message | ||
17 апр. 2014 г. 20:25 пользователь "Sean Coates"
<sean@seancoates.com>
написал:
>
> > "foobarbazbuz"[4-7] => "barb"
>
>
> Just in case this happens to slip past anyone's radar: no.
>
> S
>
>
Same from me.
Although the syntax and ability is for the most part usefull, people forget
the unicode problem.
What should we let it traverse? Bytes or characters? Right now it is bytes,
but it is rarelly used and people use functions and mb_* for unicode.
This can be discussed only when we have full unicode, before that it is
useless and just generates a ton of problems and takes time implementing
from other more usefull stuff.
A giant -1 from me.