Re: Brainstorming: quoted identifier operator

[email protected] ("Matthew Horsfall (alh)")
Newsgroups perl.perl5.porters
Message-ID <CAJ0K8bi=34n03edLF5FCmLsHRzQskiwm7u-inydjBOS3UPmuMg@mail.gmail.com>
On Wed, Jan 7, 2026 at 7:20 AM Branislav Zahradník <[email protected]>
wrote:

>
> what I can imagine, is for example introduction of new prototype I
> (identifier), and capability to
> declare for example:
> subtest (i&)
>
> so one will be able to write:
> subtest qi (validation errors) {
> }
>

Have you seen https://metacpan.org/pod/Test::Routine ?

This let's you write:

    test 'Ensure we get validation errors' => sub ($self) {
        ...
    };

I'm not sure a new operator is really a benefit over that.

(Now thinking about this, can you implement this on cpan with
https://metacpan.org/pod/XS::Parse::Keyword perhaps...)

-- Matthew Horsfall (alh)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.