On Fri, 29 Oct 2004, Robert Cummings wrote: > On Fri, 2004-10-29 at 19:04, Derick Rethans wrote: > > > Yeah, [] is for arrays, {} for string indexes though I still think this > > should not be in, one can use substring for this. Something like a > > "negative string index" is IMO too much magic. > > Just as much magic as the negative start in substr() function. It would > be consistent with substr() precedent of negative indexes counting > backward from end of string.
But substr() is a *function*, that's totally different from a language construct which should be a generic tool, not a specific one like Ilia is proposing here. > Also, everyone knows functions run slower than operators :) *cough*bullshit argument*cough* Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php