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

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

Thread Previous | Thread Next
Mark Jason Dominus
June 30, 2011 17:57
Re: [perl #93640] Allow comments in qw()
Message ID:
Brad Baxter <>:
> >  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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About