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

Re: Thoughts Towards Type Assertions (was: Re: Pre-RFC: builtin::functions for detecting numbers vs strings)

Thread Previous | Thread Next
From:
demerphq
Date:
February 25, 2022 16:22
Subject:
Re: Thoughts Towards Type Assertions (was: Re: Pre-RFC: builtin::functions for detecting numbers vs strings)
Message ID:
CANgJU+V6m-MzmYyEqJe7r5wQJVtNKwahhFC2PeYj3dTq7L0fyQ@mail.gmail.com
On Thu, 24 Feb 2022 at 17:31, Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
wrote:

> At this point I suddenly don't even like the word "Type". But currently
> I don't have a better one - words like "nature", "facet", "ability" or
> "capability" all feel wrong somehow.
>

This reminds me of looks_like_a_number() which pops up all over the place.
And I wonder if we even need to have a test for "looks like text", if we
have tests for everything else then the only thing left is "text" (without
getting into debates about whether the text is pure-octets, or unicode or
whatever).

cheers,
Yves

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