rfc:arbitrary_string_interpolation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:arbitrary_string_interpolation [2022/03/17 19:27] – ilutov | rfc:arbitrary_string_interpolation [2022/06/25 21:47] (current) – Move to wirthdrawn ilutov | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2022-03-17 | * Date: 2022-03-17 | ||
* Author: Ilija Tovilo, tovilo.ilija@gmail.com | * Author: Ilija Tovilo, tovilo.ilija@gmail.com | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.2 | * Target Version: PHP 8.2 | ||
- | * Implementation: | + | * Implementation: |
===== Proposal ===== | ===== Proposal ===== | ||
Line 38: | Line 38: | ||
</ | </ | ||
- | The proposed syntax works in double quoted strings (''""'' | + | The proposed syntax works in all cases where existing string interpolation is allowed, namely |
===== Motivation ===== | ===== Motivation ===== | ||
Line 103: | Line 103: | ||
None | None | ||
+ | |||
+ | ===== Comparison to other languages ===== | ||
+ | |||
+ | Most modern languages have string interpolation that allow arbitrary expressions. | ||
+ | |||
+ | ^ Language | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
+ | | [[http:// | ||
+ | | [[https:// | ||
+ | | [[https:// | ||
===== Credits ===== | ===== Credits ===== | ||
- | Credits to Rowan Tommins (IMSoP) for the syntax suggestion. | + | Credits to Rowan Tommins (IMSoP) for the syntax suggestion |
===== Vote ===== | ===== Vote ===== |
rfc/arbitrary_string_interpolation.txt · Last modified: 2022/06/25 21:47 by ilutov