Re: Remove variable function and method calls
| From: | Karoly Negyesi | Date: | Fri, 23 Jul 2010 00:29:32 +0000 |
| Subject: | Re: Remove variable function and method calls | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49114@lists.php.net to get a copy of this message | ||
On Thu, Jul 22, 2010 at 4:51 PM, Davey Shafik <davey@php.net> wrote:
> You can call classname::$foo() and even $obj->$foo() with call_user_func(), should we get
> rid of those too?
Absolutely not.
> I grant you that variable function calls are sometimes confusing, lambda functions are a better
> way to do it perhaps, but just because something can be abused, doesn't mean it should be
> removed, unless it's impeding further innovation (a la namespaced old style constructors).
It's not abusing it's the horribly confusing syntax.