Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113930 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2779 invoked from network); 2 Apr 2021 20:15:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Apr 2021 20:15:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E43BF18055A for ; Fri, 2 Apr 2021 13:13:37 -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=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) (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 ; Fri, 2 Apr 2021 13:13:37 -0700 (PDT) Received: by mail-qt1-f182.google.com with SMTP id l13so4385056qtu.9 for ; Fri, 02 Apr 2021 13:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=2idQZv9GAETJpUe6xU03bY1yaBbwwt7Na5hOG1tBblA=; b=r80X9SPC3fe72kwYzXIM2e8ga88dw/hmh7Jzvaaab9GLFJi1HGU/2wdUts1bZM6szk dLEJT0aQqWKw7ZtpUQNnstI6k7fJnX+Cexwn5s4ZIMFUVBAosFR2c5jrpTGC25hFHj3b 4/GJHbWi+TGEp9ZvjpLL1UpgqctJvHQJm2JJ4EboyJ+YL5jT2I+/3KptWbXS7QWHpvyM EWU9OK32v7rJf4jAJHtpRZKAeQB04togPE57M8XztknuWazRUIbBWdmgs6s9C5mwLuHb kWTVTHGO52CRzP+Ii4ySxJlAxebDgnfYh6HJtsBNkmWwXPPRQcMiUlpXk8i4zEUdPX7x FtqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=2idQZv9GAETJpUe6xU03bY1yaBbwwt7Na5hOG1tBblA=; b=aCyCNPDIE/nlxuvsSsNKgyTHrQaOz3Mv0Pbwn11GT40VRk+TWSclDNpqek/Jow1gyC vtff1NiTdosEsXve8pljEKDG4TLrCAvIO5pv4vcF60VlVjowxBBXgf/n6ySvuWKEzxXC CkZ7LP7Dba3c5JDmfNROILjSPkWVQg5icTsgInJN50vAy31sbGfdHYeIdk29XbwjbINX ROuA5xR1/D+eWFhbHeCglQmPgYTP4yrlHgRrmb+SEzvuTDyE6qIHs1CmHF0HudvOPO+W zNtWJFwurUEX9CxGyUvjuWSz8INttTyq9JOqrsTJzgZ4LcFzDJ/W3Af64/xcadTksXyQ v41w== X-Gm-Message-State: AOAM531Im/ccF/UmRfnI570w5rzpucTvTmdFjYw8c5k+fMErbAyuZGnr r4TXCMFrYm/Zr7cDvprYmvKWigz3P0kQ8RzWAOd/BE0/I3un8Q== X-Google-Smtp-Source: ABdhPJyMPwCWeMS7pBtl3gwzTTkvaRpwD9vYbffytj0mbHXuhrG9NRTAqgAGvkpUV9DcEb5ucwQOspWu77zveQAwBCQ= X-Received: by 2002:ac8:1093:: with SMTP id a19mr13140055qtj.365.1617394412813; Fri, 02 Apr 2021 13:13:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 2 Apr 2021 21:13:22 +0100 Message-ID: To: Internals Content-Type: multipart/alternative; boundary="00000000000070033205bf02fbd6" Subject: Re: [PHP-DEV] [VOTE] noreturn type From: tekiela246@gmail.com (Kamil Tekiela) --00000000000070033205bf02fbd6 Content-Type: text/plain; charset="UTF-8" I am still not comfortable with the error message "Nothing was expected to be returned" which is very confusing and I would change it to "was expected to throw or exit" or "was expected to never return". I went with "never" because it just reads better: "Function abc returns never" instead of "Function abc returns noreturn". If "never" wins then the other error message "A noreturn function must not return" must also be changed. Maybe "The function must never return" --00000000000070033205bf02fbd6--