Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113611 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 70420 invoked from network); 19 Mar 2021 13:41:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Mar 2021 13:41:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EDDBE18053F for ; Fri, 19 Mar 2021 06:35: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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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, 19 Mar 2021 06:35:37 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id a198so10035666lfd.7 for ; Fri, 19 Mar 2021 06:35: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 :cc; bh=8Bj5GyHUI0AB96Qa9HO3eDYAa9Kb5yS7MixjuP1aEwg=; b=gQKMv+ysIvOu4jCGloJQvfMUYKcwBWsaG363LjkPaZTwzzuZPhpvwGz+MYOKonli7X 2Ifv557Li2jH0bJUKCUMk5P4s5Em8pY52wXx4H69dWL3y0+8H3PgWH8VpahAqYxOSYRk lOcmY2+8d3SS9YuN5AbVN6NzZG8wq4NBpzYrbk4NgihfX650mLuRvu6MhWYTIfG3kFG1 x0n5PIm/bJZJfv4j4sONLSCjET0acrusK8fO/ETbriwIJaNmUcWD5o4ckND5WfoJjb8L a0Sz5Uj1IXqoHjbHK2j9Gzx5hNPeV79eX6gU2pJkkOzxc7NuHayeZ8dc85Kfd9F5DA14 K6ng== 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:cc; bh=8Bj5GyHUI0AB96Qa9HO3eDYAa9Kb5yS7MixjuP1aEwg=; b=JH1PPaG5z/QVYCVrCv9Nuv+FR7kD5qfSgIDFUUE0aCe6s0FPJBOSwg5Kz3OWGC5pzc 27w43wBBt7vClc6NeBYhdCClxUyHfrBmv78jVP/ZpEtqFzwasNRa65cLxn/+DDMlUy4B 2KIO0S3CYvkaPL2olWp2nhUopYuywuGd7MbWon6x/SX5Y22w6TlXh+DSTf+l7lCfiJ80 fYoc1kxrJdzp7ghqTBpJ+5Himm50XF3VL5W0H1ePHDDNfOIxnzT2Wa1h7H0sFzON1L4p HGHaMU/sY7Nog/ko+mFOUY+vqaRdZ6KZCNANkGqug3aFQunQ+NOwmFxA/D3CMF+/y0ic clnQ== X-Gm-Message-State: AOAM5303jK8yl+t/shr80Zk6WXqsn1omdHSnpSRnKc4T+GV8ujP1Y4wb 3kndPc0Ay/p5Sk+FViLFElumrMe1PQMEQ41AfCA= X-Google-Smtp-Source: ABdhPJxD+UnFzz42BFCt1IfYiBDJp8MIq4muoJFhoQci3jG89YMV3h5hijKo081+1j6RnlIdofor7YEhcw9ojdFTnXE= X-Received: by 2002:a05:6512:442:: with SMTP id y2mr876391lfk.159.1616160936108; Fri, 19 Mar 2021 06:35:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 19 Mar 2021 14:35:20 +0100 Message-ID: To: Matthew Brown Cc: Internals Content-Type: multipart/alternative; boundary="0000000000007f281e05bde3ca2b" Subject: Re: [PHP-DEV] [RFC] noreturn type From: nikita.ppv@gmail.com (Nikita Popov) --0000000000007f281e05bde3ca2b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 10, 2021 at 7:07 PM Matthew Brown wrote: > Hey, > > Ond=C5=99ej Mirtes and I present an RFC for the noreturn type: > https://wiki.php.net/rfc/noreturn_type > > The feature already exists in Hack (the primary inspiration) and is > currently supported by our static analysis tools inside docblocks, and we > feel there's a good argument for it to be supported by PHP itself. > > Thanks, > > Matt & Ond=C5=99ej > Is it allowed to declare a noreturn function that returns by reference? function &foo(): noreturn {} Regards, Nikita --0000000000007f281e05bde3ca2b--