rfc:keywords_as_identifiers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:keywords_as_identifiers [2013/10/21 14:32] – [Vote] bwoebi | rfc:keywords_as_identifiers [2013/10/22 10:31] – + notice on BC bwoebi | ||
---|---|---|---|
Line 9: | Line 9: | ||
This RFC aims to remove some restrictions which are due to the fact that keywords are not included in T_STRING (especially for class const, method and class names). | This RFC aims to remove some restrictions which are due to the fact that keywords are not included in T_STRING (especially for class const, method and class names). | ||
+ | |||
+ | This especially could be useful to preserve more BC compatibility whenever new keywords are introduced. | ||
===== What is now possible ===== | ===== What is now possible ===== | ||
Line 85: | Line 87: | ||
An example what is possible with this patch: | An example what is possible with this patch: | ||
<code php> | <code php> | ||
- | namespace | + | namespace |
class List { | class List { | ||
const default = 0; | const default = 0; | ||
Line 102: | Line 104: | ||
namespace { | namespace { | ||
- | \Test\List:: | + | \Class\List:: |
} | } | ||
</ | </ |
rfc/keywords_as_identifiers.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1