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

Re: Behavior of bitwise ops on unencountered wide characters

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
July 11, 2017 05:13
Subject:
Re: Behavior of bitwise ops on unencountered wide characters
Message ID:
20170711051239.23695.qmail@lists-nntp.develooper.com
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.

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