Re: Re: Negative string offset support

From: Date: Fri, 29 Oct 2004 23:29:46 +0000
Subject: Re: Re: Negative string offset support
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-13615@lists.php.net to get a copy of this message
On Fri, 29 Oct 2004, Andi Gutmans wrote: > Yeah, I also thought the word "need" is a bit strong :) It's more like > "syntactic sugar which is nice-to-have" As I just told Ilia on IRC, I think we should not add this (now) for a couple of reasons: - Adding new language constructs in mini releases is IMO not the way to go as it will make it possible impossible to run script that use this new construct not even parse on PHP 5.0.x servers. Adding normal new functions does not have this problem of course, as those scripts are still parsable. - Substring works just fine, adding this for performance reasons is IMO invalid. - People might want to take this even further and request {1,3}, {-3,2} and the like. (This was expressed in the past when talking about this stuff) regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

« previous php.internals (#13615) next »