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

Re: Coverity finding: shift by negative

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
June 25, 2015 02:27
Subject:
Re: Coverity finding: shift by negative
Message ID:
20150625022725.GC21162@cancer.codesimply.com
* Jarkko Hietaniemi <jhi@iki.fi> [2015-06-24T08:48:28]
> Allow me to attempt a summary of discussion so far.

Thanks.

So, I am going to cowardly try to punt here and ask someone more invested in
these features than I am to make a specific proposal, given the following:

What we need is a conceptual model of how Perl handles bit strings.  We have
operators that treat things as "numbers," which tends to mean floats, and as
"strings" which basically always means Unicode character strings.

For << and >> and | and & and ^ and ~, we should have consistent semantics,
determined by "what is useful" and "what is consistent" and "what is already in
place."

If this is a big controversial mess, I can wade in and slowly try to form a
coherent opinion that I can get behind.  In reality, though, I've got to say
that I'm not pre-invested in this particular part of the language, and it seems
more sensible to ask those who are to have a crack at it.

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