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

Re: RFC: what to do about bitwise string operators (related to [perl#63574])

Thread Previous | Thread Next
Ricardo Signes
December 15, 2015 03:27
Re: RFC: what to do about bitwise string operators (related to [perl#63574])
Message ID:
* Karl Williamson <> [2015-12-14T21:05:27]
> Ok.  I'd like ideas on how to word the deprecation message that gets raised.
> I don't like what I've come up with:
> "It is deprecated to '%s' a string containing non-byte data",
> where %s is PL_op_name[PL_op->op_type]);
> I don't like it because it uses the passive voice, but more importantly, the
> name becomes something like 'bit_xor', which I don't
> think will necessarily make sense to the reader.

Evantually fatal as:

  Strings with code points over 0xFF may not be used as arguments to %s

So warning as:

  Use of strings with code points over 0xFF as arguments to %s operator is

Matches the warning on opening ref to string with wide characters.  I don't
think "bit_xor operator" is so bad, in the case that we can't just get & or |


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