Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118135 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88295 invoked from network); 30 Jun 2022 13:11:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jun 2022 13:11:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8A8CA180505 for ; Thu, 30 Jun 2022 08:02:53 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 30 Jun 2022 08:02:52 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 2B6CC3200BC0 for ; Thu, 30 Jun 2022 11:02:49 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 30 Jun 2022 11:02:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1656601368; x= 1656687768; bh=xy/zlMoKj/Rz1o+GiPNzwQvjCwVlPWbBRx/GMljqw6s=; b=V msn3cx+7RNfXaSHDr4NjJOY5dlauifhD1+tKRQWjn1B11tB9mvhaj6bt8LbM6Mfn JWEHMprsQpK/sqdUl1QMBplY/FT3Sewyitcx+YvQU2VyB4VRgGUA+tnMiCwKxRjy 70ndYg6uVWGjMTn5UvnhTR82pV69PTJoKzS8GST1ktCYndu6NvxsRLrYkMc30xuK 21HOMOkv1V8YR11oAUoF3jdKdaY3xNK8EKj0jTxDBD786T3dCRr3VwJw3IOp7vw5 Q056OvyALACe1pGvj7MP3vUnvw7nU8dnpJhe2B2WY9RQXeMl/6B6389o1r+G5tPS 5Ur0wjWwoxCgrPLV8h3nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656601368; x=1656687768; bh=xy/zlMoKj/Rz1o+GiPNzwQvjCwVl PWbBRx/GMljqw6s=; b=ssPpcahgwlMb2Q3XklvRnCVLgS1NHGRt8efTGoRJPIbg Bu3eH+eTICx6KrGAJLF4VEpuS41+3uiYV+iPUIC5uC45hkYszzy0dSC1+Z/lDMI9 8D9vcVvI6UrI0uxEZA3NhGEE257WhJDIFwFO+/nnPMVebMBv7O6jlzysFpUADNqY lSYpl5PRiWEVZcn7BaUgbjS21Cq8as7qTdWQjkzSXxZFopPG+byYDlOLZnV6UtGf MYf7fBTLCXdpL4lSkvPk2vnVFk2fCUQZzs1HUxXgjBk2fPUiBm4TYEzaLR7HzDfP Abc72Y9eWxmF5Ijyy67esASm4QQdD8eRpp6+6qJjeA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehuddgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeekteelheffgeefvddufeeujeekhfdvtdeuuedvveet ieevheeludegjeduhffhteenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgr rhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5D300170007E; Thu, 30 Jun 2022 11:02:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 Mime-Version: 1.0 Message-ID: In-Reply-To: References: <982FFD13-6B2C-4A28-8091-886F2F637B86@me.com> <3a4338fc-5767-4b1d-a584-95e2ecb82572@www.fastmail.com> Date: Thu, 30 Jun 2022 10:02:27 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] Exception type hint From: larry@garfieldtech.com ("Larry Garfield") On Thu, Jun 30, 2022, at 8:35 AM, Dan Ackroyd wrote: > Antoine wrote: >> It could be beneficial for the whole ecosystem to have as well exceptions type hint. > > Here are my short notes on the topic. > https://github.com/Danack/RfcCodex/blob/master/throws_declaration.md > > tl:dr someone probably needs to come up with a strong reason for why > it would be a good thing. > > On Wed, 29 Jun 2022 at 17:39, Larry Garfield wrote: >> >> We are definitely not ready for that kind of fundamental rethink of how error handling works in PHP. > > I dunno. The current model is causing quite a few disagreements and > pain, and you made a good case for how it could be better. > > It'd be a huge piece of work, but a better way of handling errors > would be a significant improvement for PHP. Oh there's definitely room to improve PHP's error handling, no question. I just don't know that PHP is, at this time, capable of the "coherent multi-step roadmap so that different features dovetail together to result in more than the sum of their parts" planning that would be required to do it right. :-) --Larry Garfield