Re: Add \Countable support to \Closure
| From: | Sebastian Bergmann | Date: | Mon, 08 Aug 2011 10:55:20 +0000 |
| Subject: | Re: Add \Countable support to \Closure | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54460@lists.php.net to get a copy of this message | ||
On 08/08/2011 04:49 AM, Etienne Kneuss wrote:
I don't believe Countable implies ArrayAccess, but I do think that Countable should only be implemented in cases where it is obvious what it will return, for example collections. In this case, count(Closure) is really not that explicit, I'd rather have an explicit method.ACK -- Sebastian Bergmann Co-Founder and Principal Consultant http://sebastian-bergmann.de/ http://thePHP.cc/