Re: [VOTE][RFC] Scalar Type Hinting with Cast

From: Date: Mon, 15 Sep 2014 16:42:30 +0000
Subject: Re: [VOTE][RFC] Scalar Type Hinting with Cast
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77224@lists.php.net to get a copy of this message
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).

« previous php.internals (#77224) next »