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

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

Thread Previous | Thread Next
Christian Walde
March 5, 2021 17:41
Re: Perl feature wish: quote-word array-ref operator
Message ID:
On Fri, 05 Mar 2021 13:09:29 +0100, Felipe Gasper <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About