develooper Front page | perl.perl5.porters | Postings from October 2015

Re: What should 'qr/\p{pkg::L}/ ' do?

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
October 9, 2015 11:51
Subject:
Re: What should 'qr/\p{pkg::L}/ ' do?
Message ID:
20151009115049.GA22023@cancer.codesimply.com
* Karl Williamson <public@khwilliamson.com> [2015-10-08T10:58:23]
> Currently it evaluates to the Unicode property 'Letter'.
> 
> But I think that is the wrong thing to do.
> 
> The pkg seems to me to want to force this into a user-defined property.
> Recall that by defining a subroutine, a user can create their own
> properties.  The catch is that their names have to begin with 'In' or 'Is'.
> Therefore, I think that this should be a compile- or run-time failure that
> the property pkg::L is not found.

I agree, but I wonder whether a "illegal name" wouldn't be better than "Can't
find."  The fix is for the user to rename their &L (if they made one) rather
than to figure out why it can't be found.

At any rate, acting like L is no good.

-- 
rjbs

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