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

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

Thread Previous | Thread Next
From:
Mark Jason Dominus
Date:
June 30, 2011 17:57
Subject:
Re: [perl #93640] Allow comments in qw()
Message ID:
11411.1309481797@plover.com
Brad Baxter <bmb@mail.libs.uga.edu>:
> >  Feature 'qw//x', anyone?
> >
> >
> You know, I'm not sure I don't like that, having
> as often as not wanted comments in those long
> multiline qw()'s

We've already suffered enough from the problems of qr/.../'s trailing
modifier syntax:

        qr/ Does this end on this line? # /
            or on this line? /x

That's why Perl 6 moves the modifiers to the beginning. ( qr:x/.../ )

qw//x has the same problems:

        qw/ Does this end on this line? # /
            or on this line? /x

and once again you don't know where the construction ends.

So if we're going to go down this route, let's at least not screw it
up the same way we screwed up before, please.


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