Re: Could we kill call_user_func?
| From: | Sebastian Krebs | Date: | Fri, 15 Mar 2013 14:21:26 +0000 |
| Subject: | Re: Could we kill call_user_func? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-66644@lists.php.net to get a copy of this message | ||
2013/3/15 Steve Clay <steve@mrclay.org>
> I'm sure this question has been discussed before, so if anyone can point
> to me to links or briefly recap I'd appreciate it.
>
> Why can't we make $someCallable() always work? E.g.
> http://3v4l.org/FLpAq
>
> I understand the problem of $obj->foo() where ->foo is a callable
> property. The workaround could be:
>
> ($obj->foo)();
>
> call_user_func() just seems so ugly now that we have nicer syntax in so
> many other areas.
>
You don't need to use it, if you don't like it.
>
>
> Steve Clay
> --
> http://www.mrclay.org/
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
github.com/KingCrunch