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

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
Michael Peters
August 22, 2012 08:03
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
On 08/22/2012 08:59 AM, David Golden wrote:

> I would prefer the Any ~~ AmbiguousScalar case to warn and fall back to
> string comparison.  If someone wants to die on ambiguity, they can make
> the warning fatal.
> I think this gentler approach would be more Perlish.

I agree. I would hate to have a scenario where I add some 
debugging/logging print/warn statements that just by their existence 
change valid code into fatal code.

Michael Peters
Plus Three, LP

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