Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2002112

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard array.c From: Jon Parise (jon <email protected>)
Date: 11/23/02

On Sun, Nov 24, 2002 at 03:28:45AM +0900, Moriyoshi Koizumi wrote:

> Hmm, since nothing is mentioned about the rule of character sequence
> generation in the manual, I don't think it's so necessary. IMO this new
> feature introduced in 4.1.0 should not be included in the first place
> because it broke backwards compatibilities pretty much as one of the user
> contributed notes says and its behaviour is also as unexpectable as the
> number of charset - encoding mappings out there.
 
Yes, I can see that causing problems. I think it's necessary to leave
the capability to generate character sequences in there now, though,
for all sorts of backwards-compatibility reasons.

My change to range() (the addition of the "step" parameter) was
primarily inspired by Python's range() function, described here:

    http://www.python.org/doc/current/lib/built-in-funcs.html#l2h-47

The Python version does not handle characters, which (as we both
agree) is the "better" implementation.

-- 
Jon Parise (jon <email protected>) :: The PHP Project (http://www.php.net/)

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php