Derick Rethans wrote:
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)
where the problem about 'taking it ever further'?
I'm +1 for {-1} and more +1 for {-4,2} python likeness.
Moshe.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php