Re: RFC: alternative callback syntax
| From: | Ivan Enderlin @ Hoa | Date: | Wed, 19 Sep 2012 13:26:08 +0000 |
| Subject: | Re: RFC: alternative callback syntax | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63134@lists.php.net to get a copy of this message | ||
On 19/09/12 15:15, Steve Clay wrote:
On 9/19/12 2:37 AM, Sebastian Krebs wrote:2012/9/19 Steve Clay <steve@mrclay.org <mailto:steve@mrclay.org>>https://wiki.php.net/rfc/__alternative_callback_syntaxreason I like 'Classname::class' for classes) I don't like, that functions will look like classes with a static property "function" then ...FWIW, here are the syntaxes I've considered: func_name; // parser can't distinguish from constant callablefor func_name; // adds reserved word, token func_name::callable; // adds reserved word callable is already a reserved word (T_CALLABLE).
func_name::function; // in RFC Steve-- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/