Re: Extension proposal

From: Date: Mon, 29 Oct 2007 03:51:44 +0000
Subject: Re: Extension proposal
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4912@lists.php.net to get a copy of this message
Do you need any other reason than "it's like Python?" :) First, there's the memory conservation. You don't need to pre-allocate an array. Second, it's an objectified range iterator / generator. This means you can combine it with SPL and even your own custom iterators.
Is it really practical? I'm not set against it, but what's wrong with good old for($i=0;$i<100;$i++)? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.pecl.dev (#4912) next »