Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127545 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 3C21F1A00BC for ; Tue, 3 Jun 2025 01:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1748914333; bh=BPxOv3h7g3mZDNb6Qftr/FgTVbUhxoZxxGCPBZwrJJY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=g98UyrsNm6ZiPv+wdXP/K2cYwtNEXqHQKpIryp1Y43Gp+XfGrTaVGsTijBq2pWTV/ YQitOli6HK5u6WRbVtYCx3gRmOcaHVFiIF0taDbXEUk6DW/1xMmXzpCBa5V56zs8jt v8WSRZg7D/EqiwhhETlFE7lUF5Y/GtSUNE5DxNvIVRaW/m/0sX7BlTJTTLtBZ4+2p/ QPQy/Buhbcs0ncuAMJuvkW+BsKqxl+x5AhMF6FyzbwQSMimG3kQEQhwLFe87teipkM L29vrv5gGSq9k83Vnm8fb9fZPhsUdpmY96BVXIZy2NOrBR+rN2VPoGxT9a8RhCtNu1 w8sxFwKx9NfGg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F10C1180084 for ; Tue, 3 Jun 2025 01:32:12 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE, 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 mail-108-mta57.mxroute.com (mail-108-mta57.mxroute.com [136.175.108.57]) (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 ; Tue, 3 Jun 2025 01:32:12 +0000 (UTC) Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta57.mxroute.com (ZoneMTA) with ESMTPSA id 197336cbac80008631.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 03 Jun 2025 01:34:13 +0000 X-Zone-Loop: 6dbd71076e68fe0ab5d906b142d517334fe8558a5206 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sandfox.me; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References:To: Subject:MIME-Version:Date:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=Odks3l+KojRCNTVFOWlcTRHTL9q7wQrBiLBV5Pv9rQQ=; b=hegaZqyTrP7T 4eiuQneFgJn382JXKl2JqsoloxrQXfkwKsP9P1B7CelZ+rc3PEsKPh+tq2Edfw7ZumAh1ZRf3WKun Odk4Z1QxQEmUmd3TVLrWQwfDY4zoUZQKUj33rumnTQPISa6iq7bXT1+r+cvkXVBkMh8r2Y6HVRNuV 2R+gQH/dvEa/Y8xUk7UedMGY7Rp886lcM2lDgPb/14ZfXwHeAQMCv6onyIqRpB2uns4D05ijEZLcD gkp+YhTmHUE5rWSXaBJjK02g80x7chFkWQ+qDc8QCDGwwcK8ismZ11Mt+Pka4DNrQb+KA7KFkQDEY 4bsRqjEskoXKpiffcA1xPw==; Message-ID: <0ac00d42-7584-4de2-bca4-9099f3d4cbb5@sandfox.me> Date: Tue, 3 Jun 2025 04:34:09 +0300 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] Transform void into an alias for null To: internals@lists.php.net References: <6Z2Ysh6MjYp1nyzuB0bTPJc5srObIcMRqt731JaQeXUJk1f_V_Yo2nRn8WvjI7er7pp7pIUE6WYl5pRwvYrtcrd07nCutyAqKPSsZHmrS-Y=@gpb.moe> <7f7dc3dc-bb9a-4f6e-9b77-055c4a8801d1@rwec.co.uk> Content-Language: en-US In-Reply-To: <7f7dc3dc-bb9a-4f6e-9b77-055c4a8801d1@rwec.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: sandfox@sandfox.me From: sandfox@sandfox.me (Anton Smirnov) On 02/06/2025 23:50, Rowan Tommins [IMSoP] wrote: > I agree the type hierarchy you describe is weird, but rather than > throwing away the functionality completely, I wonder if we can make it > more consistent: > > - Make "no return type declared" and "mixed" equivalent > - Make "void" a sub-type of "null", and therefore a sub-type of "mixed" I think that null and void are semantically very different so I'd like to suggest just making void subtype of mixed. This will both keep the semantic meaning of void and make mixed and undeclared mean the same thing. -- Anton