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

Re: A troubling thought - smartmatch reïmagined

Thread Previous | Thread Next
June 26, 2022 10:46
Re: A troubling thought - smartmatch reïmagined
Message ID:
On Sat, Jun 25, 2022 at 10:13 PM Paul "LeoNerd" Evans <> 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).

Curtis "Ovid" Poe
CTO, All Around the World
World-class software development and consulting

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About