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

Re: Proposal: Rename utf8::is_utf8() to utf8::is_upgraded()

Thread Previous | Thread Next
From:
pali
Date:
March 5, 2017 12:27
Subject:
Re: Proposal: Rename utf8::is_utf8() to utf8::is_upgraded()
Message ID:
20170305122710.GA18607@pali
On Saturday 25 February 2017 20:48:46 Ricardo Signes wrote:
> * Sawyer X <xsawyerx@gmail.com> [2017-02-21T06:50:16]
> > On 02/21/2017 01:07 AM, Zefram wrote:
> > > Kent Fredric wrote:
> > >> Though that said, I think we can find a clearer name than "is_upgraded"
> > > I think that's the best possible name.  The "upgraded"/"downgraded"
> > > terminology for describing the flag state is the only one we have that
> > > doesn't give a misleading impression of its significance.  Hence my use
> > > of that terminology in Scalar::String.
> > 
> > What do you think about Leon's suggestion of is_multibyte?
> 
> In the past, I have suggested uses_wide_storage.

That sounds good too... What about those names, now in Internals::
namespace instead of utf8::?

Internals::uses_wide_storage()
Internals::upgrade_to_wide_storage()
Internals::downgrade_from_wide_storage()

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