Am 14.09.2014 um 01:30 schrieb Andrea Faulds:
> https://wiki.php.net/rfc/scalar_type_hinting_with_cast

 If I understand the "Syntax" section correctly, then int, float, numeric,
 bool, and string are added as new reserved words (keywords). This would
 break existing code, for instance userland classes named "String".

 However, looking at the patch in http://bit.ly/1uADQnD I do not see
 an addition of new tokens. So maybe there is no problem at all.

 In any case, I think it would be best to build on the great work Nikita
 did with the AST-based parser for PHP 7 and refactor the compiler to
 allow reserved words as names for namespaces, classes, interfaces, ...
 *before* we introduce new reserved words (and thus BC breaks).

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

Reply via email to