Re: [RFC] Generators

From: Date: Mon, 20 Aug 2012 19:14:51 +0000
Subject: Re: [RFC] Generators
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-62305@lists.php.net to get a copy of this message
On 20/08/12 19:46, Stas Malyshev wrote:
Hi!
What would *actually* make sense here are return value typehints. E.g. one could have something like public Iterator getIterator() { ... }.
And again we're back to inventing syntax to do what documentation should be doing. For the large part, but consider type hints mean that if you return a completely wrong type, you can warn the programmer.
-- Andrew Faulds http://ajf.me/

Thread (63 messages)

« previous php.internals (#62305) next »