develooper Front page | perl.perl5.porters | Postings from March 2021

Re: Perl feature wish: quote-word array-ref operator

Thread Previous | Thread Next
From:
Christian Walde
Date:
March 5, 2021 17:41
Subject:
Re: Perl feature wish: quote-word array-ref operator
Message ID:
op.0zsl21l1ydyjqt@xenwide.vpn.udag.de
On Fri, 05 Mar 2021 13:09:29 +0100, Felipe Gasper <felipe@felipegasper.com> wrote:

>> The quote-word arrayref construct is widely used. For example, as of 16th Feb 2021, 12681 distributions on CPAN (36%) use it either in modules, scripts, tests, or build scripts.
>
> This seems probably the most compelling rationale, but it’s a bit like auto-dereference: how much convenience does this *actually* provide, versus the overhead of adding yet more syntax to the language?

It's less typing, particularly less typing of things that require more complex key combos, and more importantly:

It's less to read.

The addition is also extremely small: Literally just a keyword.

It's just a keyword added to the q* family with slightly different parsing semantics on its parameter string.

-- 
With regards,
Christian Walde

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