develooper Front page | perl.perl5.porters | Postings from December 2021

Re: No implicit coercion?

Thread Previous | Thread Next
Paul LeoNerd Evans
December 29, 2021 00:21
Re: No implicit coercion?
Message ID:
On Tue, Dec 28, 2021 at 10:07:38AM -0600, David Nicol wrote:
> as type coercion is the feature -- it's on a plain Perl, but it's still a
> feature -- the "PMAW" for anyone who remembers those e-mails twenty years
> ago -- how about invoking this mode with C<no coercion> instead of C<use
> explicit> ?

I already wrote an idea of `no stringification` a while ago:

Having (a? another?) pragma to disallow reference->number conversions,
and string<->number conversions might also be useful.

I don't think theabove implementation is good though - to work nicely it
really must be a core feature. This is one of those ideas that can be
experimented with in a syntax way as a CPAN module, but actual
implementation really does require core.


Paul "LeoNerd" Evans      |  |

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