rfc:deprecate_dollar_brace_string_interpolation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:deprecate_dollar_brace_string_interpolation [2021/03/13 18:22] – Overhaul language to make it more compelling. crell | rfc:deprecate_dollar_brace_string_interpolation [2022/03/11 16:19] – Update 2022 ilutov | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Author: Ilija Tovilo, tovilo.ilija@gmail.com | * Author: Ilija Tovilo, tovilo.ilija@gmail.com | ||
* Status: Draft | * Status: Draft | ||
- | * Target Version: PHP 8.1 | + | * Target Version: PHP 8.2 |
* Implementation: | * Implementation: | ||
Line 14: | Line 14: | ||
2. Braces outside the variable (" | 2. Braces outside the variable (" | ||
3. Braces after the dollar sign (" | 3. Braces after the dollar sign (" | ||
- | 4. Dynamic variable lookup (" | + | 4. Dynamic variable lookup (" |
- | All of these have their pros and cons, but in practice options | + | Options 1 and 2 have their pros and cons, but 3 and 4 are easily confused due to overlapping |
- | This RFC proposes to deprecate options 3 and 4 in PHP 8.1 and remove them in PHP 9.0. That leaves only two string interpolation options: direct (simple variable only) and powerful (the one that does the most now). | + | This RFC proposes to deprecate options 3 and 4 in PHP 8.2 and remove them in PHP 9.0. That leaves only two string interpolation options: direct (simple variable only) and powerful (the one that does the most now). |
===== Status quo ===== | ===== Status quo ===== | ||
- | The first issue is that all four options support different subsets of syntax. | + | All four options support different subsets of syntax. |
==== Simple variable interpolation ==== | ==== Simple variable interpolation ==== | ||
Line 125: | Line 125: | ||
==== Comparison to other languages ==== | ==== Comparison to other languages ==== | ||
- | A number of other languages use '' | + | A number of other languages use '' |
===== Conclusion ===== | ===== Conclusion ===== | ||
Line 151: | Line 151: | ||
===== Vote ===== | ===== Vote ===== | ||
- | Voting starts | + | Voting starts |
As this is a language change, a 2/3 majority is required. | As this is a language change, a 2/3 majority is required. | ||
- | <doodle title=" | + | <doodle title=" |
* Yes | * Yes | ||
* No | * No | ||
</ | </ | ||
rfc/deprecate_dollar_brace_string_interpolation.txt · Last modified: 2022/05/05 08:17 by ilutov