Re: Re: Str enhancement, final run
| From: | Derick Rethans | Date: | Tue, 10 Jul 2001 17:01:15 +0000 |
| Subject: | Re: Re: Str enhancement, final run | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59579@lists.php.net to get a copy of this message | ||
On Tue, 10 Jul 2001, André Langhorst wrote:
> nah, you know waiting turns developers into killer-machines ;)
>
> something more to think about...
>
> $foo{${a$i}}
> $foo{$i++..$i}
> $foo{($moo ? $zoo:$boo)..$roo}
> $foo{super_function($moo)..substr($doh::zoo)-4}
>
> I state that is better to simply implement negative indices than
> allowing all these kinds of perlish code (what would follow if we'd
> allow substr()ingin in {}
> or should we allow all this sorts of statements and operators and functions?
I think we should not allow this, use substr() if you need more
functionality. Stick to very simple things with the {} stuff.
Derick