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

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

Thread Previous | Thread Next
From:
Josh Juran
Date:
February 25, 2022 16:28
Subject:
Re: Pre-RFC: builtin:: functions for detecting numbers vs strings
Message ID:
D588B372-329F-489E-8F8E-7CCDE1FBDDD8@gmail.com
On Feb 24, 2022, at 9:04 AM, Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:

> I wonder if we can find some sort of "has"-like wording, that fits
> these? While I don't think these are good names as such, I think if the
> names had been something like
> 
>  builtin::has_truthiness
>           has_numberness
>           has_stringiness
>           ...
> 
> Then it would be less surprising that something like the $! dualvar has
> both numberness and stringiness, as it would be to find out that it
> *is* both a number and a string.

"has_number_nature" and "has_string_nature"?

Josh


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