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

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

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
July 11, 2017 05:10
Subject:
[perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
rt-4.0.24-32414-1499749810-1927.131685-15-0@perl.org
On Mon, 10 Jul 2017 19:53:42 -0700, public@khwilliamson.com 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
https://rt.perl.org/Ticket/Display.html?id=131685

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