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

Re: RFC: Add new string comparison macros in handy.h

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
October 24, 2017 15:02
Subject:
Re: RFC: Add new string comparison macros in handy.h
Message ID:
CA+vYcVwHKDSE-cKeMQf5sOJ1sgsJAM5M80--8ZrWgRR53qpoww@mail.gmail.com
On Tue, Oct 24, 2017 at 9:24 AM, Karl Williamson
<public@khwilliamson.com> wrote:
> On 06/05/2017 09:44 AM, Zefram wrote:
>>
>> Karl Williamson wrote:
>>>
>>> I'm not a fan of the trailing 's' in the name mean a literal string.
>>
>>
>> We've already got that in a bunch of API macros: sv_setpv/sv_setpvs,
>> for example.  It's good to stick with the established convention.
>>
>> -zefram
>>
>
> You're right

I agree, but do note that someone somewhere will probably confuse them
with the C11 "_s" suffix indicating bounds checking.  I can't think of
anything reasonable we can or should do about that.

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