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

Re: Pre-RFC: syntax for quote-words-arrayref

Thread Previous | Thread Next
From:
Christian Walde
Date:
June 7, 2022 14:06
Subject:
Re: Pre-RFC: syntax for quote-words-arrayref
Message ID:
op.1neb4wekydyjqt@xenbox.cihq
On Wed, 01 Jun 2022 11:44:03 +0200, Neil Bowers <neilb@neilb.org> wrote:

>> is code really that more clear/legible as qa[...] than it is with [ qw(...) ]?
>
> In short, yes :-)
>
> I remember that the first N times I saw [qw/ … /] I initially had a "huh, wtf is that?". I think it is more of an >improvement for beginners and casual Perl programmers, than for heavyweights, who may still use the existing >idiom even with qa[] available, due to muscle memory.

While i'm hella agreeing with all of this, an odd thought:

I've repeatedly wanted to be able to do

\qw( sdfsdf sdf )

as a mirror to

\@things

-- 
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