Re: [PHP-DEV] String interpolation shortcomings

2017-07-11 Thread ilija . tovilo
Oops, I actually meant to suggest the syntax `“Hello \{world()}”` (note: curlies instead of parens) to be closer to the original syntax. Regards, Ilija On 11 Jul 2017, 21:10 +0200, ilija.tov...@me.com, wrote: > Hi everyone > > String interpolations are a great feature. They make your code more

[PHP-DEV] String interpolation shortcomings

2017-07-11 Thread ilija . tovilo
Hi everyone String interpolations are a great feature. They make your code more readable and can reduce the number of allocations PHP has to make. Unfortunately, PHP is very restrictive in what kind of expressions string interpolation accepts. The only time you can actually use it is if your e