Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

quotemeta

8 views
Skip to first unread message

Rod Adams

unread,
Mar 16, 2005, 3:07:13 AM3/16/05
to Perl6 Language List
I vote for axing C<quotemeta> in favor of C<q:meta//> and C<q:m//>.

-- Rod Adams

Richard Proctor

unread,
Mar 16, 2005, 5:17:33 AM3/16/05
to Rod Adams, Perl6 Language List
On Wed 16 Mar, Rod Adams wrote:
> I vote for axing C<quotemeta> in favor of C<q:meta//> and C<q:m//>.
>

Given A05 states that bare scalars match literally, quotemeta is (almost?)
obsolete. It can certainly be downgraded.

Richard

--
Personal Ric...@waveney.org http://www.waveney.org
Telecoms Ric...@WaveneyConsulting.com http://www.WaveneyConsulting.com
Web services Ric...@wavwebs.com http://www.wavwebs.com
Independent Telecomms Specialist, ATM expert, Web Analyst & Services

Larry Wall

unread,
Mar 16, 2005, 12:41:03 PM3/16/05
to Perl6 Language List
On Wed, Mar 16, 2005 at 10:17:33AM +0000, Richard Proctor wrote:
: On Wed 16 Mar, Rod Adams wrote:
: > I vote for axing C<quotemeta> in favor of C<q:meta//> and C<q:m//>.
: >
:
: Given A05 states that bare scalars match literally, quotemeta is (almost?)
: obsolete. It can certainly be downgraded.

Except that q:meta would be an upgrade in terms of specialness,
and besides, it's inside out from what you want, which is to quote
a particular argument to a string interpolation, not the entire
interpolation. It just wants to be a miscellaneous function hidden
in the bowels of the core somewhere.

Larry

Juerd

unread,
Mar 16, 2005, 4:46:29 PM3/16/05
to Perl6 Language List
Larry Wall skribis 2005-03-16 9:41 (-0800):

> Except that q:meta would be an upgrade in terms of specialness,
> and besides, it's inside out from what you want, which is to quote
> a particular argument to a string interpolation, not the entire
> interpolation. It just wants to be a miscellaneous function hidden
> in the bowels of the core somewhere.

Doesn't it want to be the method .escaped then? The method could support
all kinds of escaping/encoding.


Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html

Larry Wall

unread,
Mar 16, 2005, 5:18:25 PM3/16/05
to Perl6 Language List
On Wed, Mar 16, 2005 at 10:46:29PM +0100, Juerd wrote:
: Larry Wall skribis 2005-03-16 9:41 (-0800):

: > Except that q:meta would be an upgrade in terms of specialness,
: > and besides, it's inside out from what you want, which is to quote
: > a particular argument to a string interpolation, not the entire
: > interpolation. It just wants to be a miscellaneous function hidden
: > in the bowels of the core somewhere.
:
: Doesn't it want to be the method .escaped then? The method could support
: all kinds of escaping/encoding.

The question is, escaped for what? quotemeta() is rather Unix-centric
in a conservative sort of way.

Maybe we're just talking about an option to .as().

Larry

0 new messages