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

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

Thread Previous | Thread Next
Ricardo Signes
October 9, 2015 11:51
Re: What should 'qr/\p{pkg::L}/ ' do?
Message ID:
* Karl Williamson <> [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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About