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
From:
Ricardo Signes
Date:
December 15, 2015 03:27
Subject:
Re: RFC: what to do about bitwise string operators (related to [perl#63574])
Message ID:
20151215032730.GA22141@cancer.codesimply.com
* Karl Williamson <public@khwilliamson.com> [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
  operator

So warning as:

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

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 |
etc.

-- 
rjbs

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