Re: Re: Generators in PHP
| From: | Alex Aulbach | Date: | Tue, 24 Jul 2012 18:32:08 +0000 |
| Subject: | Re: Re: Generators in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61717@lists.php.net to get a copy of this message | ||
2012/7/24 Andrew Faulds <ajf@ajf.me>:
> But PHP functions usually have side-effects, they aren't strict mathematical
> functions.
Ah, you might mean str_tok()? Are there more, do you have a list?
But we're in PHP-programming-context. You write a function in PHP, you
call it and it will return once called. I see there no exeption.
> So complaining about this is rather pointless.
I don't complain about the past. I just think now, that if it doesn't
behave like a function it shouldn't be called function. A function
which returns as an object and is not completed is not a function.
And if other languages do so, my argument will be the same.
<rising finger with epic mimic, fistulous voice> We need not to make
the same mistake again! :)
--
Alex Aulbach