Re: Re: Generators in PHP

From: Date: Wed, 25 Jul 2012 12:55:46 +0000
Subject: Re: Re: Generators in PHP
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
I was simply pointing out their usefulness. I can already do these things in PHP, but it's much
nicer to do them with generators.

Also, why are you so relentlessly arguing generators are hard to understand for some PHP devs? If a
generator contains a return, that's a syntax error. Please explain how people will end up using
generators like normal functions without causing some kind of error or exception. I don't see
where the problem is?


--
Sent from Samsung Mobile
Andrew Faulds
http://ajf.me/

Alex Aulbach <[email protected]> wrote:

null


Thread (142 messages)

« previous php.internals (#61758) next »