Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113451 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 2564 invoked from network); 10 Mar 2021 19:36:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2021 19:36:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D5D0E1804B4 for ; Wed, 10 Mar 2021 11:28:53 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 ; Wed, 10 Mar 2021 11:28:53 -0800 (PST) Received: by mail-il1-f173.google.com with SMTP id g9so16670469ilc.3 for ; Wed, 10 Mar 2021 11:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=NXVcKuCkoA8nMVeqim4yL1MPUg/+Md2zzyFfSoA/Kn0=; b=PLWlmBUpjRRY4DXndeqxa8nHXkuA/ZazSuLtJrk4h0ofQA2mqwnkhJsF504eB6APFe IISm/2A0VVJwJAgiovjG2fvhUv9GqGMiBJgogywSpAaDlhZPlA4jgbMve0eYP8SBf3Lp DvrrpsbFWaKpQKUwUXScSCRTmrhFnsfjApQCGNGbCrQGa5v7scK9jUvADo7Wo6y3iAiz iMIHocWzeAdzsPsT9LmXDB22tjohCprfDYr1aBk8dVpC4lyJlDYsCY3CZCRteLJbrBo1 +zPV54HwI6ub2EAzd/gjEN4s6XRER2vlHQmfHKCqwX+WJMQxPt5Y/KUxTIwuj2yJ5eyz Ys1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=NXVcKuCkoA8nMVeqim4yL1MPUg/+Md2zzyFfSoA/Kn0=; b=IGsw8aZerfCs5wHtZzICApra2h+MtNEbx1TR+kBURjn1Y4XKi9q9jSSzz21SNQ6xBX bjzCkwHqpC8fIBVhqprMgUK3zhHz7H/i7SylNjbr/wMxBdDSAe14ejdzCzZQsHbzOS41 TEW6gX+yq19XU2eE/Kus0RXp8Dx/vVfcXQRJHWUvK2MfUnMgoZFHuxNJL/Hf2SmXH1c5 dhyTPtgVa/52WGijYVkWWZylknknG2zXRQSO7QHv+2Hr5rM1rWu1lHh+5jRqiA3VetQW 5pk2e68Uz1sS+Ud9ya6y43AZ/cBYvz+icPYMGy6qYNbaK6aI3DqjefqmOTEu/cXL5/9g TNWw== X-Gm-Message-State: AOAM533N517guJMOrBTfcJSX0nhMNMXH4A8vJXvkM+K+9J0I/94J83Qi U/7a7XVFHZUCdPnoAK99AWsq8Tc7mgrPuQ== X-Google-Smtp-Source: ABdhPJxsdRquNWwSBqJanCE8Ty3dktLeYzs4R4eY/1ijASejXiEsnQJwPG1EZkzh5/J+U0Nc5b0UgQ== X-Received: by 2002:a05:6e02:968:: with SMTP id q8mr4169667ilt.31.1615404529627; Wed, 10 Mar 2021 11:28:49 -0800 (PST) Received: from [10.10.42.56] ([96.61.105.82]) by smtp.gmail.com with ESMTPSA id c9sm153772ilr.78.2021.03.10.11.28.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Mar 2021 11:28:48 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_2BA1AA63-49F6-4A9B-A0A3-89F5E1625DC0"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Date: Wed, 10 Mar 2021 13:28:49 -0600 References: To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3654.60.0.2.21) Subject: Re: [PHP-DEV] [RFC] noreturn type From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_2BA1AA63-49F6-4A9B-A0A3-89F5E1625DC0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 10, 2021, at 13:24, Aleksander Machniak wrote: >=20 > On 10.03.2021 19:06, Matthew Brown wrote: >> Ond=C5=99ej Mirtes and I present an RFC for the noreturn type: >> https://wiki.php.net/rfc/noreturn_type >=20 > I don't like that type covariance would be allowed. Why such an > exception to the rules? It=E2=80=99s not an exception. Returns are covariant. Parameters are contravariant. Since `noreturn` is a subtype of all other types, it behaves as expected. I like the proposal, btw! Cheers, Ben --Apple-Mail=_2BA1AA63-49F6-4A9B-A0A3-89F5E1625DC0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCYEkd8QAKCRCwLZeYnIwH G94lAPsEkUmyu2BS4jWM1f3dCU9RaULQafAWvw7BGqgtcOSIaAD/WM+OuD6Fkvfp YYp44PfZkDJ2HMr9LVTL3bm0JRJE2mM= =ZzhX -----END PGP SIGNATURE----- --Apple-Mail=_2BA1AA63-49F6-4A9B-A0A3-89F5E1625DC0--