note 112611 added to language.generators.comparison
| From: | sou at oand dot re | Date: | Thu, 04 Jul 2013 13:34:21 +0000 |
| Subject: | note 112611 added to language.generators.comparison | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195457@lists.php.net to get a copy of this message | ||
I think to be more similar the samples in the function, throw a new exception is better. But looking
into "Generator syntax" session, you can see there this: "An empty return statement
is valid syntax within a generator and it will terminate the generator.". By this point of
view, we can imagine that this is just to exemplify an usage of the empty return.
----
Server IP: 69.147.83.199
Probable Submitter: 201.83.162.206
----
Manual Page -- http://php.net/manual/en/language.generators.comparison.php
Edit -- https://master.php.net/note/edit/112611
Del: integrated -- https://master.php.net/note/delete/112611/integrated
Del: useless -- https://master.php.net/note/delete/112611/useless
Del: bad code -- https://master.php.net/note/delete/112611/bad+code
Del: spam -- https://master.php.net/note/delete/112611/spam
Del: non-english -- https://master.php.net/note/delete/112611/non-english
Del: in docs -- https://master.php.net/note/delete/112611/in+docs
Del: other reasons-- https://master.php.net/note/delete/112611
Reject -- https://master.php.net/note/reject/112611
Search -- https://master.php.net/manage/user-notes.php