develooper Front page | perl.perl5.porters | Postings from July 2017

Re: Behavior of bitwise ops on unencountered wide characters

Thread Previous | Thread Next
From:
Karl Williamson
Date:
July 11, 2017 17:09
Subject:
Re: Behavior of bitwise ops on unencountered wide characters
Message ID:
c99bfd6e-df5f-1633-0ea4-373c1a5d94b3@khwilliamson.com
On 07/10/2017 11:12 PM, Father Chrysostomos wrote:
> Karl Williamson wrote:
>> I don't yet have a fully formulated opinion on this, but one question I
>> would have is "How is this different from division by 0" that people
>> seem to deal ok with.
> 
> Fatal division by zero is ancient.  Fatalizing bitwise operations on
> utf8 breaks stuff.
> 
> As I suggested in another thread (I seem to have been ignored), it
> would be *much* kinder to users to make it a warning.  (Wide character
> in blah blah blah.)  That way users who care can fatalize it, or sup-
> press it.  You have the best of all three worlds.
> 

I believe I've referred to your suggestion in some thread.  It is the 
minimum we should do.  And others believe it should be deprecated.

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