Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117317 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88092 invoked from network); 12 Mar 2022 17:06:11 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Mar 2022 17:06:11 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 01CBD1804F8 for ; Sat, 12 Mar 2022 10:30:12 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 12 Mar 2022 10:30:12 -0800 (PST) Received: by mail-yb1-f179.google.com with SMTP id e186so23190578ybc.7 for ; Sat, 12 Mar 2022 10:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DRXMRNQXDYd+9FUwzNajGU2Bi3QdSVECsLkKHaOhBNs=; b=BATa99lQy1jB+86Gn36g66/3LdMMga3XhhkVraUroTdr5b0EXHA3RhIT04/VJ1Aec3 DNWd0HZyPMRuL6DeHZuacDDn7S71qHC/8rGErSO6fCnpOpfcTy2fiJgRWmUv0GaMK+yq cgcaZcD1W8C5tc3UUjnKk5tBmr9YbtVy1kyoD2UL0kUUB7DAfkmkaSklFJgUmF5Iu2HE GJm0dSb9e6Pw4fRBROn3VqKuxLHJvqhrxIh0iwpOkgF/O1RJ2v3boKbPHpDq7oH9q/EO 2TleOo1zVZJml0T9+QkgZJfj1sTTIU1SbercxLzhAFQaq7Jzj3GQgDb3mqxfPJZPUb4I elbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DRXMRNQXDYd+9FUwzNajGU2Bi3QdSVECsLkKHaOhBNs=; b=LmWOsoCL3QBlUDw4e7OJx0N9JWmCw8wPgSjVlx16ISEDaMjHLBrtBy0K9YwM2sKtTp OzbaDNSVuftrQc7MLdyxblopUY/1zi3biJiJBkofSr6v/DtgKOE+OvugU1E7E9EqY5Fq 21QOC2PlJPRa/6dEgmV4/O2SV57rytDFaXSxazSgxrZZZ3e/bht2ARK2QCNQNd0FTZ5K wlBAM5BPumxwY0HiNaMcegpiXFn8KlJmuWpaIyCkOVItp2lNVeguxVSx6S2444NX6YFq 702TGd0bpNgSFAzpPjvO5EbfyriqwVVG6QQv5qEtjM+aZ9GTDRm7zLQ8pP+Z4vC7T4O3 FNjg== X-Gm-Message-State: AOAM533ceIvqzYwaHjaHDacQIMJX5zJcikFoclPXkPw2pB5s5KjFr1Pl MAsyF/6DDYHaUd3zk+S+88OhCPuujO8QmFWA/yU= X-Google-Smtp-Source: ABdhPJwyMZ3ogNs8omLfV5cdxztfyDiD2ABuKl/O/IgC3iz5+Ik/M29X9X8LnQG0BginxD8OxlFEYLHDKfL8F6EjavI= X-Received: by 2002:a25:7690:0:b0:628:aeff:5dcc with SMTP id r138-20020a257690000000b00628aeff5dccmr12116560ybc.424.1647109811870; Sat, 12 Mar 2022 10:30:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 12 Mar 2022 18:30:00 +0000 Message-ID: To: David Rodrigues Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000003e21ce05da09a3ec" Subject: Re: [PHP-DEV] [RFC] [VOTE] Allow null and false as stand-alone types From: george.banyard@gmail.com ("G. P. B.") --0000000000003e21ce05da09a3ec Content-Type: text/plain; charset="UTF-8" On Sat, 12 Mar 2022 at 18:18, David Rodrigues wrote: > Maybe I'm a little late to this discussion, but is there any reason why > *false|null* is allowed but *true|null* is not? > > I can think of few cases where *true|null* could be interesting, but I've > been through situations like this. > true is not a type in PHP compared to false, therefore it is not included. I'm working on a proposal to add true as a type to PHP, but that's a seperate RFC and discussion. Best regards, George P. Banyard --0000000000003e21ce05da09a3ec--