[RFC][VOTE] Closure from callable

From: Date: Sun, 15 May 2016 17:29:22 +0000
Subject: [RFC][VOTE] Closure from callable
Groups: php.internals 
Request: Send a blank email to internals+get-93342@lists.php.net to get a copy of this message
Hello, I've opened the voting for the Closure from callable RFC - https://wiki.php.net/rfc/closurefromcallable Just to note, some people I've spoken to have expressed a desire to have a more powerful syntax where 'bare' function names are used, like: callable(someFunctionName) callable($this->method) I fully agree with those people, however I can't see anyway to do that before PHP 8. It would almost certainly need some clean up of the allowed syntax to disambiguate what $this->method means for: class Foo { public $method; public function method() { } } Leaving that top-level function name available for future versions, where we might be able to support it properly, is one of the reasons to use the more verbose function name. cheers Dan

« previous php.internals (#93342) next »