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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
August 4, 2021 16:26
Subject:
Re: Pre-RFC: Real "boolean" SV type
Message ID:
CAHhgV8hPMYSHVWt01xFguYb0rbxZg6oCOC13c2Wg2BP4byshgg@mail.gmail.com
On Wed, Aug 4, 2021 at 5:45 PM Tomasz Konojacki <me@xenu.pl> 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.

Leon

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