develooper Front page | perl.perl5.porters | Postings from June 2022

Re: pre-RFC: template strings

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
June 13, 2022 01:40
Subject:
Re: pre-RFC: template strings
Message ID:
9b967449-f34d-4e8b-b3ca-4f15ce4faeeb@www.fastmail.com
On Sun, Jun 12, 2022, at 17:36, Graham Knop wrote:
> I like the general idea. I don't really like the spelling though, as ${ } already has meaning in the language and in interpolated strings.  I'd say that the @{} form is not needed. Eliminating it could allow a better spelling for the ${ } form.
> 
> Prior art: https://metacpan.org/pod/Quote::Code

Thanks.  If we have only one form, I'd suggest we use `#{ ... }` from Ruby.

Quote::Code raises a good point:  this would be useful in heredocs.  I'll think about it.

-- 
rjbs
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About