rfc:namespaced_names_as_token
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:namespaced_names_as_token [2020/06/15 17:05] – nikic | rfc:namespaced_names_as_token [2020/06/16 08:48] – nikic | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Date: 2020-06-15 | * Date: 2020-06-15 | ||
* Author: Nikita Popov < | * Author: Nikita Popov < | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.0 | * Target Version: PHP 8.0 | ||
* Implementation: | * Implementation: | ||
Line 8: | Line 8: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | PHP currently treats namespaced names like '' | + | PHP currently treats namespaced names like '' |
The motivation is to reduce the backwards compatibility impact of new reserved keyword additions in future versions of PHP. To give a specific example, PHP 7.4 added the '' | The motivation is to reduce the backwards compatibility impact of new reserved keyword additions in future versions of PHP. To give a specific example, PHP 7.4 added the '' | ||
Line 74: | Line 74: | ||
// Before: T_NS_SEPARATOR T_STRING | // Before: T_NS_SEPARATOR T_STRING | ||
// After: | // After: | ||
- | // Rule: {LABEL}(" | + | // Rule: |
namespace\Foo; | namespace\Foo; | ||
Line 164: | Line 164: | ||
As such, the practical impact is very limited, and any issues are trivial to fix. On the other hand, this change will reduce the backwards-compatibility impact from any future keyword additions. | As such, the practical impact is very limited, and any issues are trivial to fix. On the other hand, this change will reduce the backwards-compatibility impact from any future keyword additions. | ||
+ | |||
+ | Additionally tooling based on '' | ||
===== Vote ===== | ===== Vote ===== |
rfc/namespaced_names_as_token.txt · Last modified: 2020/07/31 12:54 by nikic