Re: Callable type
| From: | Martin Scotta | Date: | Tue, 07 Jun 2011 20:28:49 +0000 |
| Subject: | Re: Callable type | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53179@lists.php.net to get a copy of this message | ||
callback is callable, the opposite could not be true.
a string --or a closure-- is callable, but the string is not a callback
IMHO callable fits better.
Martin Scotta
On Tue, Jun 7, 2011 at 4:28 PM, David Zülke <david.zuelke@bitextender.com>wrote:
> On 07.06.2011, at 21:12, Stas Malyshev wrote:
>
> > Hi!
> >
> >> https://wiki.php.net/rfc/callable
> >
> > Note also that this pseudo-type is called "callback" in all of our
> documentation, which means we have now documentation that says:
> >
> > bool array_walk ( array &$array , callback $funcname [, mixed $userdata ]
> )
> >
> > and type check that says "callable".
>
> Oh, good point. It should be "callback" then, too, maybe? Or the
> documentation should be adjusted (which might be a good idea, as "$funcname"
> doesn't reflect the realities anymore).
>
> David
>
>