Re: [PHP-DEV] [RFC] Better string interpolation

2020-08-18 Thread Rowan Tommins
Hi Ilija, On Mon, 17 Aug 2020 at 18:54, Ilija Tovilo wrote: > > sprintf-style modifiers are an interesting idea. But I'm not sure if > there would be a huge advantage over using number_format. > > [...] > > Escaping is a nice idea but I'm not sure we want to go that route. > String

Re: [PHP-DEV] [RFC] Better string interpolation

2020-08-17 Thread Ilija Tovilo
Hi Rowan > On 14/08/2020 17:14, Ilija Tovilo wrote: >> I've been thinking about ways to improve string interpolation. String >> interpolation in PHP is currently pretty limited to say the least. Thanks for your feedback! > we could take the opportunity to bring more features into the mix > > 1)

Re: [PHP-DEV] [RFC] Better string interpolation

2020-08-16 Thread Rowan Tommins
Hi Ilija, On 14/08/2020 17:14, Ilija Tovilo wrote: I've been thinking about ways to improve string interpolation. String interpolation in PHP is currently pretty limited to say the least. Thanks for putting together some thoughts on this. My instinct is that rather than having a whole new

[PHP-DEV] [RFC] Better string interpolation

2020-08-14 Thread Ilija Tovilo
Hi internals I've been thinking about ways to improve string interpolation. String interpolation in PHP is currently pretty limited to say the least. What's worse is we have several ways to do the same thing and a few of them being quite inconsistent and confusing. We have these syntaxes: 1.