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

2020-08-17 Thread Ilija Tovilo
Hi Alex >> I've been thinking about ways to improve string interpolation. > > Using a prefix for strings that have a saner interpretation reminds me of > f-strings in python 3. I would suppose you know about it already but I'll > leave a link here anyway: https://www.python.org/dev/peps/pep-0498

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

2020-08-16 Thread Alexandru Pătrănescu
On Sun, Aug 16, 2020, 20:45 Ilija Tovilo wrote: > Hi internals > > > I've been thinking about ways to improve string interpolation. > > Absolutely overwhelmed by the feedback (:P) I've decided to create a small > POC: > > https://github.com/php/php-src/compare/master...iluuu1994:string-interpolat

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

2020-08-16 Thread Ilija Tovilo
Hi internals > I've been thinking about ways to improve string interpolation. Absolutely overwhelmed by the feedback (:P) I've decided to create a small POC: https://github.com/php/php-src/compare/master...iluuu1994:string-interpolation The POC uses the following syntax: echo "Static method call