Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117504 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 89418 invoked from network); 8 Apr 2022 20:08:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Apr 2022 20:08:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9FA21180380 for ; Fri, 8 Apr 2022 14:39:44 -0700 (PDT) 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_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3301 81.224.0.0/12 X-Spam-Virus: No X-Envelope-From: Received: from ts201-smtpout73.ddc.teliasonera.net (ts201-smtpout73.ddc.teliasonera.net [81.236.60.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 8 Apr 2022 14:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telia.com; s=tssemail; t=1649453984; bh=xxhI5UVSewltWjX8EhMVa/gW9NKhHzuHXcV+6zCHcWk=; h=Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To; b=SReaMTXTeh8jUBDooFKJ9NBTPAgylBScm9ekffgDpseTuddgrd2ILTNpn4p70op2DSUCjt+J0RMaPTZW/l0QEpacYf+CJhW4sDMcxcybhOc0vJ35sGSFZsr+4hdCXhSgQ0gGQap+zmXPKoLe22lLUI1BWAF/8lWE3cAfTplN+8DACGJOnM0Uh0hIwtwf65JNNlXkXr4eLnuF6cUVf4TvSl3lRIC9CVBzqSWFm8HRQPJ7Lv0AElgXRcB0Ku6tjLknj8VRpnPP+MOz1W0DEOvGzv/mls5y52iWccOwKVFqvQs74LT/tY93cDQzWbvV+j1O6fcG2kNJlSzMN4U+dw6LaA== X-RG-Rigid: 61A89807076FDE00 X-Originating-IP: [84.216.97.240] X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvvddrudektddgudeivdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfvgffnkfetufghpdggtfgfnhhsuhgsshgtrhhisggvpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeeujhpnrhhnpgfnrghrshhsohhnuceosghjohhrnhdrgidrlhgrrhhsshhonhesthgvlhhirgdrtghomheqnecuggftrfgrthhtvghrnhepleeilefhvdetuedukedtteeitefggfdtiedtieeugfegfeffgfejieejheeludeknecuffhomhgrihhnpehphhhprdhnvghtnecukfhppeekgedrvdduiedrleejrddvgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurdekngdpihhnvghtpeekgedrvdduiedrleejrddvgedtpdhmrghilhhfrhhomhepuhekleeltdeigedujeesphhnvgdrthgvlhhirgdrtghomhdpnhgspghrtghpthhtohepvddprhgtphhtthhopehgvghorhhgvgdrsggrnhihrghrugesghhmrghilhdrtghomhdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.8] (84.216.97.240) by ts201-smtpout73.ddc.teliasonera.net (5.8.716) (authenticated as u89906417) id 61A89807076FDE00; Fri, 8 Apr 2022 23:39:40 +0200 Message-ID: <383ed15d-ca3d-d611-cf75-c76946a1574b@telia.com> Date: Fri, 8 Apr 2022 23:39:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-GB To: "G. P. B." References: Cc: PHP internals Reply-To: =?UTF-8?Q?Bj=c3=b6rn_Larsson?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Add true as type From: internals@lists.php.net ("Björn Larsson via internals") Den 2022-04-08 kl. 18:47, skrev G. P. B.: > Hello internals, > > I would like to open the discussion on the RFC to add true as a type. > https://wiki.php.net/rfc/true-type > > Now that null and false can be used as standalone types, I think it makes a > lot of sense to add true as a value type for the sake of completeness with > false. > > It also has many use cases within internals and userland to declare proper > type signatures to functions and methods. > > Best regards, > > George P. Banyard > Finally, I have been waiting for this :) Two comments: - Would be nice to have an example / UC that shows the value of true as a type in the RFC. - Should one have a link to the earlier discussion about this type, either in the RFC or in the announcement on the internals list? Regards //Björn