develooper Front page | perl.perl5.porters | Postings from August 2021

Re: Pre-RFC: Real "boolean" SV type

Thread Previous | Thread Next
Leon Timmermans
August 4, 2021 16:26
Re: Pre-RFC: Real "boolean" SV type
Message ID:
On Wed, Aug 4, 2021 at 5:45 PM Tomasz Konojacki <> wrote:

> What are 'true' and 'false' exactly? Are they synonyms for !!1 and !!0
> or are they brand new values that stringify to "true" and "false"?

It's not really about their values, but about identity (that sounded like
it could be about something very different)

Ultimately they're nothing more than special values of 0 and 1, that just
happen to know they're identical (as opposed to equivalent) to false and
true. Most code that isn't a serializer wouldn't care about this, but
there's a lot of code out there that uses serializers.


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