Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113897 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13318 invoked from network); 1 Apr 2021 09:01:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 1 Apr 2021 09:01:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A769F180087 for ; Thu, 1 Apr 2021 01:58:58 -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.3 required=5.0 tests=BAYES_05,NICE_REPLY_A, SPF_HELO_NONE,SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from scarlet.netpirates.net (scarlet.netpirates.net [188.94.27.5]) (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 ; Thu, 1 Apr 2021 01:58:58 -0700 (PDT) Received: from p5de2cca2.dip0.t-ipconnect.de ([93.226.204.162] helo=[192.168.178.42]) by scarlet.netpirates.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lRtAH-0007Xg-Pq for internals@lists.php.net; Thu, 01 Apr 2021 10:58:57 +0200 To: internals@lists.php.net References: Message-ID: <931447f0-0fc9-c6fe-040d-8055ec10e7d7@php.net> Date: Thu, 1 Apr 2021 10:58:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] noreturn type From: sebastian@php.net (Sebastian Bergmann) Am 01.04.2021 um 10:56 schrieb Benjamin Eberlei: > I voted no, because i think this should at the maximum be an attribute. > > This RFC is using the declaration of the return type, to specify that it > never returns. As such noreturn or never is a keyword a long the lines of > public or final, but it is not a return type. > > I don't think the argument for potential optimizations in Opcache to > eliminate dead code or allow IDEs to hint at dead code are valuable enough > to justify this change. Following Benjamin's argument, I have changed my vote to no.