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:
Graham Knop
Date:
March 9, 2022 15:42
Subject:
Re: Pre-RFC: builtin:: functions for detecting numbers vs strings
Message ID:
CAM=m89FgNYjHnTNFH2TUk5A-eiP6sbSZW4RxHzhG64bEHK-GqQ@mail.gmail.com
On Wed, Mar 9, 2022 at 4:22 PM demerphq <demerphq@gmail.com> wrote:
>
> I am starting to think that calling it serialize_as_number would be better.
>

I'm not really a fan. It feels too prescriptive to me, both for the
language and for any serializer. created_as_number accurately
describes what the function does in a non-opinionated way, but still
avoids saying "this is what numbers are" and "this is what strings
are", which we are trying to avoid.

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