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

Re: A troubling thought - smartmatch reïmagined

Thread Previous | Thread Next
From:
Ovid
Date:
June 26, 2022 10:46
Subject:
Re: A troubling thought - smartmatch reïmagined
Message ID:
CA+M4CHs-SWqNkpXZ6eax1d-Grsc_AKHxMYtB1TkbSsog=kNjsw@mail.gmail.com
On Sat, Jun 25, 2022 at 10:13 PM Paul "LeoNerd" Evans <
leonerd@leonerd.org.uk> wrote:

>   I wonder if we're going about things the wrong way, regarding strings
>   vs numbers, equality test operators, smartmatch, and a bunch of other
>   ideas. Maybe - maybe - now that we can distinguish strings vs numbers
>   a little better, there's a way we can make a single operator Do The
>   Right Thing.
>
> Comments welcome - on blog or replied here.
>
>
I like where you're going. However, sooner or later, we're going to need to
address the type problem up front.

I suspect, however, that we're going to punt on the type problem and build
things into the language that are workarounds/heuristics. Those
workarounds/heuristics might preclude some later type opportunities, or we
might need to rollback some workarounds/heuristics. This is not a good
place to be.

Is there any interest in discussing the actual issue with the lack of
types? (by types, I mean the kinds of non-reference data a scalar can hold
and the operators allowed on them).

Best,
Curtis "Ovid" Poe
CTO, All Around the World
World-class software development and consulting
https://allaroundtheworld.fr/

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