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

Re: pre-RFC: template strings

Thread Previous | Thread Next
From:
Mark Gardner
Date:
June 12, 2022 20:44
Subject:
Re: pre-RFC: template strings
Message ID:
bD6wsMsifxYhj6v9Q2J5iSU1ODh0Y4b91LkZFQa4W_A3b6kaPOp_jmYRbOLXTwph8W84KBzB4RG0p_FJKaaE3vNW85LZVwWXCFJJQ8Jc5K8=@phoenixtrap.com
On Sun, Jun 12, 2022 at 2:10 PM, Oodler 577 <oodler577@sdf-eu.org> wrote:

> * Ricardo Signes <perl.p5p@rjbs.manxome.org> [2022-06-12 14:46:38 -0400]:
>
> […]
>> I would like to propose we blithely steal template literals from JavaScript, with some modifications. We add a new quote-like operator, "qt", which does not interpolate like qq, but has its own method for interpolation. We ignore the "tagged templates" feature of JavaScript.
> […]
>
> At first glance, I like this. Two things come to mind, the "templating" that we
> already have: format (which I still don't grok) and subroute prototypes. Rather
> than constructing a 3rd kind of templating approach, are there things that can
> be applied or avoided - or dare I say improved - in considering this?
>
> […]

Don’t forget sprintf.
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