develooper Front page | perl.perl6.language | Postings from May 2006

Re: A rule by any other name...

Thread Previous | Thread Next
From:
Audrey Tang
Date:
May 11, 2006 07:03
Subject:
Re: A rule by any other name...
Message ID:
446334D1.5070109@audreyt.org
Patrick R. Michaud wrote:
>> - <sp> is a single character of obligatory whitespace

Hmm, it's literal ' ' (that is, \x20), not "whitespace" in general,
right?  For "obligatory whitespace" we have \s.

> This one has bugged me since the day I first saw it implemented
> in PGE.  We _already_ have \s, <blank>, and <space> to represent 
> the notion of "a whitespace character" -- do we really need a 
> separate <sp> form also?  (An idle thought: perhaps "sp" is
> better used as an :sp adverb and a corresponding <?sp> regex?)

Well, without /<?sp>/ to stand for /\x20/, it'd have to be written as
/<' '>/, which is a bit suboptimal.  Or as /\ /, which is even more
suboptimal...

Audrey



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