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 14, 2022 11:58
Subject:
Re: Pre-RFC: builtin:: functions for detecting numbers vs strings
Message ID:
7ee45f8-44b-ec8-ce6a-bcf781ab2666@jubileegroup.co.uk
Hi there,

On Mon, 14 Mar 2022, Ovid via perl5-porters wrote:

> The most accurate description I can think of is something like:
>
>     was_initialized_as_number()
>
> But we don't do past-tense, so perhaps the slightly awkward:
>
>     is_initialized_as_number()
>
> I *think* this is:
>
> * Accurate
> * Non-native speakers will already know "Initialized"
> * Long and cumbersome enough to be annoying :(
>
> I'd welcome something better...

ISTR that I saw some allusion to this earlier, but would it not be
helpful to consider how the value is to be used, rather than what may
or may not have been done to it at some uncertain point in history?

Something like

treat_as_number()
to_be_used_as_number()
considered_to_be_number()
...

-- 

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