develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #93640] Allow comments in qw()

Thread Previous | Thread Next
From:
Eric Brine
Date:
September 18, 2011 16:59
Subject:
Re: [perl #93640] Allow comments in qw()
Message ID:
CALJW-qEh32yeyVMEm=_+RLJ6_8gttz0WU56-b+2ciX6Wyy1DPg@mail.gmail.com
On Sun, Sep 18, 2011 at 7:38 PM, Tom Christiansen <tchrist@perl.com> wrote:

> I am fully aware that it no longer compiles into that, but nothing
> has changed: it is still an uninterpolated literal.
>

You're acting like I said there's a bug in qw().

qw() is inconsistent with the rest of Perl which defines whitespace to
include comments. (e.g. comments can separate tokens (which is the closest
the docs come to defining whitespace), regex allow comments as whitespace,
lex_read_space skips over comments, etc). And most importantly, people
expect comments to work in qw. Noy only has come up a number of over the
years, qw even warns you that it can't do comments when you try.

The module addresses the inconsistency.

- Eric

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