develooper Front page | perl.perl5.porters | Postings from August 2023

Re: Text vs bytes WAS Re: PPC Elevator Pitch for Perl::Types

Thread Previous | Thread Next
Darren Duncan
August 16, 2023 21:13
Re: Text vs bytes WAS Re: PPC Elevator Pitch for Perl::Types
Message ID:
On 2023-08-16 3:40 a.m., Felipe Gasper via perl5-porters wrote:
> In all my years of writing Perl, and JS code to consume Perl APIs, the only truly vexing type problem I found was Perl’s inability to distinguish text from byte strings.
> -FG

I agree that this is very important.

The Perl 5.36 update that let us finally distinguish booleans from numbers and 
text was a huge step forward.  Thank you again to everyone who made that work.

I feel that a similar kind of core enhancement to the booleans one that lets us 
thoroughly distinguish the intent of a string to be octets/raw versus characters 
would be extremely valuable and something that I could use.

And this matter is orthogonal to the Perl::Types and Oshun proposals/discussions 
but having it would be a big support for both of them, and for my independent 
work on data interchange/serialization mechanisms/formats.

-- Darren Duncan

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