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

Re: Pre-RFC: builtin:: functions for detecting numbers vs strings

Thread Previous | Thread Next
From:
"G.W. Haywood" via perl5-porters
Date:
March 8, 2022 16:32
Subject:
Re: Pre-RFC: builtin:: functions for detecting numbers vs strings
Message ID:
88ef2329-6725-1b3-3352-601550ac654e@jubileegroup.co.uk
Hi there,

On Tue, 8 Mar 2022, Karl Williamson wrote:
> On 3/8/22 07:38, Graham Knop wrote:
>> ...
>> I've created an RFC PR: https://github.com/Perl/RFCs/pull/13
>> 
>> In the RFC, I'm using the names builtin::created_as_number and
>> builtin::created_as_string. Justification is included in the RFC, but
>> I think these better match what we want their return values to
>> represent. And I personally, was_originally_number feels really
>> awkward as a function name. The names could still be changed of
>> course; I'm not overly attached to what I've chosen.
>
> I think "created_as..." are better than previous suggestions

+1

-- 

73,
Ged.

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