rfc:variable_syntax_tweaks
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:variable_syntax_tweaks [2020/01/07 10:15] – created nikic | rfc:variable_syntax_tweaks [2020/02/11 10:23] – nikic | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Variable Syntax Tweaks ====== | ====== PHP RFC: Variable Syntax Tweaks ====== | ||
* Date: 2020-01-07 | * Date: 2020-01-07 | ||
- | * Author: Nikita Popov < | + | * Author: Nikita Popov < |
* Target Version: 8.0 | * Target Version: 8.0 | ||
- | * Status: | + | * Status: |
* Implementation: | * Implementation: | ||
Line 57: | Line 57: | ||
==== Arbitrary expression support for new and instanceof ==== | ==== Arbitrary expression support for new and instanceof ==== | ||
- | Most syntactic constructions that normally require an identifier also accept a syntax variation that accepts | + | Most syntactic constructions that normally require an identifier/name also accept a syntax variation that allows |
- | One place where arbitrary expressions are currently not supported are class names in '' | + | One place where arbitrary expressions are currently not supported are class names in '' |
- | This RFC proposes to introduce the syntax '' | + | In line with the considerations above, this RFC proposes to introduce the syntax '' |
- | === Instanceof alternatives | + | ===== Backward Incompatible Changes ===== |
- | While for '' | + | There are not backwards incompatible changes, this RFC allows strictly |
- | The second possibility is to relax the restrictions around the right-hand-side of '' | + | ===== Future Scope ===== |
- | ===== Backward Incompatible Changes ===== | + | It is in principle possible to relax the limitations on the right-hand-side of '' |
- | + | ||
- | There are not backwards incompatible changes, this RFC allows strictly more syntax than before. | + | |
===== Vote ===== | ===== Vote ===== | ||
- | Unless there are concerns regarding specific parts of the RFC, a monolithic vote will be used. | + | Voting started 2020-01-28 and ends 2020-02-11. |
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ |
rfc/variable_syntax_tweaks.txt · Last modified: 2020/02/17 10:52 by nikic