Re: Re: Str enhancement, final run
| From: | Stig Venaas | Date: | Sun, 15 Jul 2001 11:50:31 +0000 |
| Subject: | Re: Re: Str enhancement, final run | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60050@lists.php.net to get a copy of this message | ||
On Sun, Jul 15, 2001 at 01:13:04AM +0200, Cynic wrote:
> As for the Andre's suggestions, I like Python's ranges in both
> lists and strings (they use colon instead of two dots). I
> some details of it unintuitive, but don't remember what it was
> exactly as it's been some time since I touched Python though.
> I can look it up if anyone's interested.
Yes, I think that for strings we should limit it to ranges
like $foo{4..6}, and it would be neat if we for arrays could
do $foo[4..6]. ":" might be just as well as "..". It is more
intuitive with ".." I think, but I also kind of like having a
single character.
Stig