Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127604 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 4CA6B1A00BC for ; Thu, 5 Jun 2025 05:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1749101445; bh=kc1F8YiLLBSueeVPXtcCeBOBaoshPv8YYiitzGTy/Rc=; h=Date:From:To:In-Reply-To:References:Subject:From; b=FEaF3mLeC7lb6B2pACqgnwDuY8IeE/RpQiEgeMz0NyrbhcWv/XtlCIknZZvzEGAqb tW1G2c8eDZQn0FZdIqFrEpRyMYYGLXZRb2vVzbqcvdHGOwVRYBrVHQkoOh6s8rDkqt bnBg2qDvEV/FFxfkIAoCLy/HRfbVvWUcKyNB04kkXv2KNcuSXlrxck35eCFTaXZr/L zTr4mCic/VK5xegtHJFKPuvmL2hXAMuTZghIsGkYCAcN2xrD4HQ0NR0ruJ5NDbwSBs /P8Ilb7xO+BUXnFEvFJanOg0eeaYfYEEYxm821FnbS4Qwf7ICtdHjuvKOZ7gHcT+PS OUjWnguDmSg7w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 977F0180339 for ; Thu, 5 Jun 2025 05:30:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 5 Jun 2025 05:30:44 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id 2222311400C0 for ; Thu, 5 Jun 2025 01:32:47 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-05.internal (MEProxy); Thu, 05 Jun 2025 01:32:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1749101566; x=1749187966; bh=kc1F8YiLLB SueeVPXtcCeBOBaoshPv8YYiitzGTy/Rc=; b=Zy8htV2EspJMfEqj2q6F3AansZ VP3SghJS/xCzNtRWqCpON9R3UHhU2LVGo4WlYKqc725v8LCGCZ/3PC3lNG8SgnY1 dpzzbMSGhahI9KHIeTpZFyfLpwCtRZqBEmUtB7x07QfMPefgDuWASkgQTGhWSEFu XPxXa2m9pSFaUlS5HvldGb54XT5Ap4wALj7o1gY+b7t9OqlDzJ3xBtFwUSK/cS28 Mg2azBJsHN8GNVg6kJ0KQppInOsCNmTbl9pvHLVCVhNlZudI+Sf9jrXRDKLy0osQ LfK67IszyjI2RC27V8qREcZ6Zi3K1jisGglK71/Kp13icIMQbu9wtqP0tZHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1749101566; x=1749187966; bh=kc1F8YiLLBSueeVPXtcCeBOBaoshPv8YYii tzGTy/Rc=; b=g2nf4KrVoTX/nPIMcHMIeyyf0eqX/Dx0liRFvpjOEw0xRsvrFnY 8tNGeeyPt7z+8NygCAuawYHRIOd3GTBABQ94pnDYBjflmBdRNlEFxP3HTF/U7eRm hBvlyowwyzzmhl8aZ7ukLxlfI3fSIWHslyBSMYbcDB+zx9CRu5lD8XzElsDJkYN1 G6YzqPjhllhM9WUeeDJSc/+xELIyPpljkLzGJ/I1k2rV/KaPvF3DRGVKgYfM7ztU 67R8VydrmFXlXKxuAkk5QuDNTI8q1W6xGHEIgJlpuSdke915VsaSVGL5RFKSsbFB kEU/m7M7f0AaLQHuidnZjEAUsmCss9rU1Eg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdefudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefoggffhf fvkfgjfhfutgesrgdtreerredtjeenucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcu oehrohgssegsohhtthhlvggurdgtohguvghsqeenucggtffrrghtthgvrhhnpeelkeehtd fgfefhleeilefggeeihfekvdelfeejtdfflefhheehfffgudetuddutdenucffohhmrghi nhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphhtthhopedu pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhssehlihhsth hsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 841641820064; Thu, 5 Jun 2025 01:32:46 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T974e76a5247f7a65 Date: Thu, 05 Jun 2025 07:32:25 +0200 To: internals@lists.php.net Message-ID: <5299b2af-fbf9-4267-ad1d-069b6d39c9e7@app.fastmail.com> In-Reply-To: <6Z2Ysh6MjYp1nyzuB0bTPJc5srObIcMRqt731JaQeXUJk1f_V_Yo2nRn8WvjI7er7pp7pIUE6WYl5pRwvYrtcrd07nCutyAqKPSsZHmrS-Y=@gpb.moe> References: <6Z2Ysh6MjYp1nyzuB0bTPJc5srObIcMRqt731JaQeXUJk1f_V_Yo2nRn8WvjI7er7pp7pIUE6WYl5pRwvYrtcrd07nCutyAqKPSsZHmrS-Y=@gpb.moe> Subject: Re: [PHP-DEV] [RFC] Transform void into an alias for null Content-Type: multipart/alternative; boundary=e24ac7a3fff148d4825fdca724e1156c From: rob@bottled.codes ("Rob Landers") --e24ac7a3fff148d4825fdca724e1156c Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Jun 2, 2025, at 18:27, Gina P. Banyard wrote: > Hello internals, >=20 > This is the second RFC out of a set of type system related RFCs I want= to propose for PHP 8.5. >=20 > The objective is to fix a weird quirk of PHP's type system, where void= lives in its own type hierarchy. > This is visible mainly in that a lack of return type is not isomorphic= to a function that has a return type of mixed. >=20 > Let me know what you think about it. >=20 > RFC: https://wiki.php.net/rfc/void-as-null >=20 > Best regards, >=20 > Gina P. Banyard >=20 Hi Gina, This RFC feels inverted to me. Instead of making null equivalent to void= , why not make using a void return an error (eventually) instead of it r= eturning null? =E2=80=94 Rob --e24ac7a3fff148d4825fdca724e1156c Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Mon, Jun 2, 2025, at 18:27, Gina P. Banyard wrote:<= /div>
Hello internals= ,

This is the second RFC out of a set of type s= ystem related RFCs I want to propose for PHP 8.5.

The objective is to fix a weird quirk of PHP's type system, where voi= d lives in its own type hierarchy.
This is visible mainly in t= hat a lack of return type is not isomorphic to a function that has a ret= urn type of mixed.

Let me know what you think a= bout it.


Best regards,

Gina P. Banyard<= /div>


Hi Gina,
=
This RFC feels inverted to me. Instead of making null equ= ivalent to void, why not make using a void return an error (eventually) = instead of it returning null?

=E2=80=94 Rob
--e24ac7a3fff148d4825fdca724e1156c--