develooper Front page | perl.perl5.porters | Postings from July 2017

[perl #131685] Rename utf8::is_utf8() (and other functions)

Thread Previous | Thread Next
Father Chrysostomos via RT
July 11, 2017 05:10
[perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
On Mon, 10 Jul 2017 19:53:42 -0700, wrote:
> I don't know what namespace is best.  At first blush Internals seems 
> good to me, for this and other things that people currently have hacks 
> for, like
> 	$foo & ""
> which trying to find out if $foo is a string or just a number.  I don't 
> fully understand the objection to 'Internals'

Adding new public functions to the Internals namespace would completely change its meaning.  It contains functions that exist mainly for perl’s own functionality (for built-in modules like Hash::Util to use) and for testing perl itself.  Users are not supposed to know about them.  That the cat is out of the bag and we cannot remove them is unfortunate.

Since we already use ‘utf8’ to refer to Perl’s Unicode support, why not continue to use that namespace?


Father Chrysostomos

via perlbug:  queue: perl5 status: open

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