Re: RFC: alternative callback syntax
| From: | Steve Clay | Date: | Wed, 19 Sep 2012 13:15:28 +0000 |
| Subject: | Re: RFC: alternative callback syntax | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-63133@lists.php.net to get a copy of this message | ||
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_syntax
reason 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 func_name::function; // in RFC Steve -- http://www.mrclay.org/