Re: Generators in PHP
From: hakre Date: Thu, 09 Aug 2012 21:22:20 +0000 Subject: Re: Generators in PHP References: 1 2 3 4 5 6 7 8 9 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
> Also, currently yield looks very similar to return and I think this is > a nice thing as it is similar semantically. yield($foo) would give it > different semantics, imho. I love this point a lot. Return is very common and yield is some kind of return.
Thread (142 messages)
« previous | php.internals (#62110) | next » |
---|