Re: Re: Generators in PHP
From: Sara Golemon Date: Wed, 25 Jul 2012 02:19:44 +0000 Subject: Re: Re: Generators in PHP References: 1 2 3 4 5 6 7 8 9 10 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> > Or when you have programming errors, when you write > > function blubb() > { > ... yields... > ... > ... return.... > } > > (you may only see the "return"). > > But that's okay, because PHP *does* see both, and it tells you "yield may not be used with return" in a lovely little parser error. Some developers consider this a useful hint. -Sara
Thread (142 messages)
« previous | php.internals (#61730) | next » |
---|