Re: RFC: alternative callback syntax

From: Date: Thu, 20 Sep 2012 09:30:48 +0000
Subject: Re: RFC: alternative callback syntax
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-63188@lists.php.net to get a copy of this message
Tentative +1 for the func_name::callable version. callable seems more generic, and possibly more intuitive when scan reading code that contains lots of 'function'. class A { static function init() { $inst = new self; var_export <http://www.php.net/var_export>($inst->bar::callable); $inst->bar(); } function bar() { var_export <http://www.php.net/var_export>(B::baz::callable); }} -- Pete Boere Web Developer

« previous php.internals (#63188) next »