develooper Front page | perl.perl5.porters | Postings from September 2021

Re: Pre-RFC: Rename SVf_UTF8 et al.

Thread Previous | Thread Next
From:
Felipe Gasper
Date:
September 3, 2021 15:44
Subject:
Re: Pre-RFC: Rename SVf_UTF8 et al.
Message ID:
FDC22290-0C16-4C9F-9023-26C75727D1CC@felipegasper.com


> On Sep 3, 2021, at 10:24 AM, Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:
> 
> On Wed, 18 Aug 2021 13:18:34 -0400
> Felipe Gasper <felipe@felipegasper.com> wrote:
> 
>> PROPOSAL: Rename the following identifiers in code and documentation,
>> leaving macros for the old ones as aliases:
>> - SVf_UTF8        -> SVf_PVUPGRADED
>> - SvUTF8          -> Sv_PVUPGRADED
>> - SvUTF8_on       -> Sv_PVUPGRADED_on
>> - SvUTF8_off      -> Sv_PVUPGRADED_off
>> - SvPOK_only_UTF8 -> SvPOK_only_UPGRADED
> 
> This got briefly mentioned as a side-comment on PSC today.
> 
> Thoughts are "What about WIDE"? As in
> 
>  SVf_WIDE (though really I'd want to call that SVppv_WIDE)
>  SvWIDE
>  SvWIDE_on
>  etc...

IMO it would at least improve on status quo.

My only reservation would be potential confusion with the notion of “wide character” (anything >255); someone might see that flag and think it means there’s a wide character in the string or some such.

-F


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