Re: Re: [RFC] [DISCUSSION]: Closure from callable
| From: | Stanislav Malyshev | Date: | Sun, 04 Oct 2015 23:02:31 +0000 |
| Subject: | Re: Re: [RFC] [DISCUSSION]: Closure from callable | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88671@lists.php.net to get a copy of this message | ||
Hi!
> I think the origin of this intention is, that calling a callable just
> by
$callable() does not work consistently -- see the other RFC
> by
> Dan --
Maybe we should fix $callable() then? :) I see no reason why $()
shouldn't work on all callables. That's why they are "callable" after all.
> and that call_user_func() suffers from a (mythical?) performance
> issue.
Fixing performance issues in a specific functions by introducing a
language-level constructs does not sound like the best option to me. I
would first ensure the issue exists and then look into how it can be
fixed with this specific function.
--
Stas Malyshev
smalyshev@gmail.com