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

Re: pre-RFC: template strings

Thread Previous | Thread Next
June 15, 2022 15:27
Re: pre-RFC: template strings
Message ID:
On Sun, Jun 12, 2022 at 02:46:38PM -0400, Ricardo Signes wrote:
> In a qt string, there are two special forms: `${ EXPR }` and `@{ EXPR
> }`. These evaluate the expression in them in scalar and list contexts,
> respectively, and then interpolate the result. The list form joins the
> list elements with `$"`.

I like having different forms for explicitely providing context. If
there is a single form (like the suggested `#{}`), then it probably
should provide list context (since we only have the `scalar` keyword at
our disposal).

 Philippe Bruhat (BooK)

 In the contest between simplicity and silence, silence hasn't got a prayer.
                                    (Moral from Groo The Wanderer #15 (Epic))

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About