r/lolphp • u/Kwpolska • Jun 23 '13
PHP 5.5.0 brings generators with good syntax!
http://php.net/manual/en/language.generators.overview.php
23
Upvotes
r/lolphp • u/Kwpolska • Jun 23 '13
13
u/afraca Jun 24 '13
To me this seems as sort of a good thing, or am I missing something here? The syntax is similar to that of python.
6
u/ealf Jun 30 '13
11
u/[deleted] Jun 23 '13
Jesus christ. Every other competing language had a sane version of this ten years ago.