Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113488 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 34093 invoked from network); 11 Mar 2021 23:41:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Mar 2021 23:41:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 041F01804D1 for ; Thu, 11 Mar 2021 15:34:10 -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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 ; Thu, 11 Mar 2021 15:34:09 -0800 (PST) Received: by mail-wr1-f49.google.com with SMTP id l12so3798718wry.2 for ; Thu, 11 Mar 2021 15:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=3FdKg+0kX+4xsKDZyTf1mWcoIydoIuYiY41GEQ3isD0=; b=p5ZHKtgtAJx+MilVzbB5nj/JVtHBDV1LW35FD4xZF8VxrLOST/M0LsgvLvAtyg/5E5 uD1sHmX1agw8n4RzQcg0Rh3k2VjmF9lrDCmQjRZRDabIcDRPZ6QgJ702rSK8ow2Lml2Y L+ONwvKEa7dfLFCFJ16dLhCjvpuyT32gjEHe4X/bsC89w8y/OFFQZRNaxeCC+hdI6Waz itjeHZCLgJnnYGiWlfH8uw4eG1pc3EREU7c1GMFGVefYqINWHfm8yZwxvuuYYkn8MQOz Za29OPe9sLv55DpbPBGs6e734XjompFHpRkbuZeUR1e2Ix2goPKlf8POVA+4e+LVu+Pi 2jLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=3FdKg+0kX+4xsKDZyTf1mWcoIydoIuYiY41GEQ3isD0=; b=p2F57aDnfKV8USDpZ7VK50wkHuvvTjfsnatg2FmMSPlSvRlTvEyrtyYmsNPlTBy8Oy lidL+l1LFc+DvA6S2ODdUFrEMSzvPQKJ7vxjjmUmp9qqEalnrD2y038FcLx6yatof+TZ EK3W/MPa94smQm/E66/MF/vMCP4cGKuomqiGJcW4nSxY2L6JeyiIeq6oZ+nSBdTuqWCt 4q1avKJrSKVVtfHhNsS81HD+915fXjJW3Mm2DyFWpjuEzP6jxEAPi8KfV1laRHA/g6we C+r0dB1EdJ01mLhcQfTcDsdHNnTh7iPYIIt191eK2Y3xMPKGfzoOuXhecq/4Z18U6IrE rIYw== X-Gm-Message-State: AOAM531Mv2M0ZO2NsC+a5tBzGUutOEJZXW3l+TgxqdZhx325mkSOyuQl 3t8cdzsbc4LNFhDe4u9enDJjRvW3AmA= X-Google-Smtp-Source: ABdhPJwArabbUhkjKWEBhpN/lPlX/ZiPwEMsKzQ6llG6Ywb2nZL2erzKnTjqZw1LXTvoVR6dasHRtg== X-Received: by 2002:a05:6000:1545:: with SMTP id 5mr11040077wry.90.1615505647426; Thu, 11 Mar 2021 15:34:07 -0800 (PST) Received: from [192.168.0.27] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.gmail.com with ESMTPSA id x11sm379333wme.9.2021.03.11.15.34.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Mar 2021 15:34:06 -0800 (PST) Date: Thu, 11 Mar 2021 23:34:07 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: Subject: Re: [PHP-DEV] [RFC] noreturn type From: rowan.collins@gmail.com (Rowan Tommins) On 11 March 2021 19:39:26 GMT, Dan Ackroyd wrote= : >Unfortunately people in the community have started doing what I >feared, and using void as 'no value is returned', which is not what >the language actually _does_=2E > >I realise the above might be slightly discombobulating if, for >example, some people had written large static code analyzers that had >misinterpreted void like this=2E I think it is you that is misinterpreting things=2E The "void" keyword exp= licitly signals the intent "this function does not return a value"=2E Peopl= e find that a useful thing to signal, even if the language still allows the= function to be used in expression context=2E They also find it useful to b= e reminded "Hey, you know this function you're using as an expression? That= makes no sense, because it doesn't return anything=2E" You may not find that useful, but those that do are using "void" exactly a= s intended=2E Regards, Oh, and on this point: --=20 Rowan Tommins [IMSoP]