Re: [VOTE] Generators

From: Date: Wed, 29 Aug 2012 20:47:45 +0000
Subject: Re: [VOTE] Generators
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-62584@lists.php.net to get a copy of this message
Hi! >> Thanks, this is now fixed. It'll throw an exception now, saying that >> you can't traverse an already closed generator. > > Nothing in the core throws an exception, why would this?! I'd rather have it skip foreach, maybe producing a warning/notice. It'd otherwise also be only place generators throw exceptions, which is a bit unexpected. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#62584) next »