develooper Front page | perl.perl5.porters | Postings from April 2000

Re: PATCH: perlre.pod (against 5.6.0)

From:
Hugo
Date:
April 29, 2000 19:18
Subject:
Re: PATCH: perlre.pod (against 5.6.0)
Message ID:
200004300227.DAA28706@crypt.compulink.co.uk
In <4576.957042210@chthon>, Tom Christiansen writes:
:>ll153-4: Otherwise, the lefter one always wins.
:>Cute though it is, I'd rather see something like 'the leftmost of the
:>two'.
:
:The problem with that, which I did consider, is that -most is in
:the superlative degree, something that cannot occur when merely two
:items are being compared.  For that, you need the comparative degree.

Otherwise, the one to the left always wins. ('starting to the left of
the other', in full.)

I think I understand why you've added this new paragraph, but I'm not
at all sure that it is the right thing to do - I think there is a
danger that it will make it more difficult for the gentle reader
later to understand how the backtracking mechanism (along with the
combinatorial rules of a few simple operators) entirely determine
which match is found. I have no replacement to offer, however.

:>l179: \u      titlecase next char
:>Not sure what 'titlecase' means, or why it is more accurate than
:>'uppercase', nor why \U was not similarly changed.
:
:Because that doesn't happen there.  "titlecase" is a Unicode notion.
:(It's somewhat misleading, since it doesn't really understand proper
:titlecasing rules in English.)  But some scripts (read: charsets)
:allegedly distinguish between these.  That's why toke.c has
:toUPPER_LC_uni for uc(), but toTITLE_LC_uni for ucfirst().

I think that's worth expanding on then: taking myself as the
epitome of the man on the Clapham omnibus, the reader will not
know what this word means until it is explained.

Hugo



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About