On 19/09/12 15:15, Steve Clay wrote:
On 9/19/12 2:37 AM, Sebastian Krebs wrote:
2012/9/19 Steve Clay <st...@mrclay.org <mailto:st...@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
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/


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to