Front page | perl.perl6.language |
Postings from May 2001
Apo2: \Q ambiguity
Thread Next
From:
Richard Proctor
Date:
May 4, 2001 10:30
Subject:
Apo2: \Q ambiguity
Message ID:
Marcel-1.53-0504172921-b49Rr9i@waveney.demon.co.uk
In Apocalypse 2, \Q is being used for two things, and I believe this may be
ambiguious.
It has the current \Quote meaning admitibly \Q{oute} it is also being
proposed for a null token disambiguate context. As in $foo\Q[bar].
But if it is spliting $foo and {this is in curlies} this will be taken as
\Quoting the content of the curlies.
I think that \Q for quoting and \Q for a null token should be different.
And given that the null token is new this is what should use something new.
It may also be a good idea to allow alternative brackets in \Q{...} in
much the same way as one can use different symbols for s///. If what you
are quoting uses curlies, one might choose angle brackets, or square
brackets.
Richard
--
Richard@waveney.org
Thread Next
-
Apo2: \Q ambiguity
by Richard Proctor