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

func_name::function; // in RFC

Steve
--
http://www.mrclay.org/

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

Reply via email to