rfc:arbitrary_expression_interpolation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
rfc:arbitrary_expression_interpolation [2017/09/22 13:28] – external edit 127.0.0.1 | rfc:arbitrary_expression_interpolation [2017/09/23 11:54] – tpunt |
---|
* ''{}'' - Poses a potentially large BC break by suddenly giving all curly braces in strings semantic meaning | * ''{}'' - Poses a potentially large BC break by suddenly giving all curly braces in strings semantic meaning |
* ''#{}'' - Poses a minor BC break | * ''#{}'' - Poses a minor BC break |
| * Sting sigils (such as: ''e"Result: {func()}"'') - Poses no BC break, but is not really applicable to the execution operator or the heredoc syntax |
| |
Overall, I have chosen the ''#{}'' syntax for its low BC impact, as well as its familiarity, given that the same syntax is used by some other languages too (Ruby, Crystal, Elixir, CoffeeScript). | Overall, I have chosen the ''#{}'' syntax for its low BC impact, as well as its familiarity, given that the same syntax is used by some other languages too (Ruby, Crystal, Elixir, CoffeeScript). |
rfc/arbitrary_expression_interpolation.txt · Last modified: 2017/12/12 17:09 by tpunt