Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118133 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80655 invoked from network); 30 Jun 2022 11:43:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Jun 2022 11:43:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 80DCB180511 for ; Thu, 30 Jun 2022 06:35:24 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (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 06:35:24 -0700 (PDT) Received: by mail-vs1-f47.google.com with SMTP id i186so18276929vsc.9 for ; Thu, 30 Jun 2022 06:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B+NAlrVr91f8PI93TgAADYBRJpgPtIlaANItc51Qd8c=; b=uASEoDr4diDX6YCjp5gwmIvuLNS4po4DQnggwVhckzFd7QZ5X9ZVFkrq6t6mbfPFn0 eGtgsIl/4b8LNMA209vB/aKC+cC0HLWQ9fPTrAkGECm6EPLNfatQhQV/rFs5Pj5xgDbW 0YuhvWQrNHyNAev3CVoCUZjidCBFrnV4hDJMk8XCOWsHLqfJkFnKP/hAS+O0LxjlPmNL NDzapcKxMAxK9CcJy655c4FwThQlvqo8f0qT8EwDoRf4LENg2j8+rwOdwAVYU3JX+wrO xHHRSBqzzJUntMHbySltRZZwC5htg5jmvGpApjqU85V5HCGh2dCgttQYUwtB3Hv+CVXS qNAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B+NAlrVr91f8PI93TgAADYBRJpgPtIlaANItc51Qd8c=; b=av+Bu2wYO3THZ6TNSBP6NLmmHa57NmjJ9cisC564TI728o5f47zCY44p75zaT1KDRK hQVlVxxY1rIDP25Aa1qKX+4Qv91VHMuenQI/toSgpzMqDYOZg7NUgHiRCZKI+WmgcTHo LtLYpL6IZ2oOCgkHuE0p6nUsVkJdj7XKEd+c3KqZQgj5MVpEiH0ZfHmBEndCxI9o8ZbE Ej3O/G5YneKiV7uxdbOPh2hYzClDd8gKxWqg2klJJJODYo8ZACJE3lPW05MpYCixFt3T 5qm0ZVv48lPR0pb1xn1C8s+KZug9y0eK3DipWP2GS64OSVJGg1E1JUihoNlmieBMbTnZ O94A== X-Gm-Message-State: AJIora8dhQI9f1NhFrgnM1kxRNPGPwwAvrzYPZVzc+P/3oFPB4t6pEBN FZXpXw900u8vgGRVLqKbeZVmK8329378UY0NmF8VdwCN+imIdg== X-Google-Smtp-Source: AGRyM1uLaNps6LisXkat48GoaR/3NZQD/FZL43A5cFIPKXDmcKGdOeYMe9WURAXUZKyVmOShjEV9VlQ1IlQnnCMflww= X-Received: by 2002:a67:d318:0:b0:356:6fa0:b39b with SMTP id a24-20020a67d318000000b003566fa0b39bmr6763305vsj.2.1656596123453; Thu, 30 Jun 2022 06:35:23 -0700 (PDT) MIME-Version: 1.0 References: <982FFD13-6B2C-4A28-8091-886F2F637B86@me.com> <3a4338fc-5767-4b1d-a584-95e2ecb82572@www.fastmail.com> In-Reply-To: <3a4338fc-5767-4b1d-a584-95e2ecb82572@www.fastmail.com> Date: Thu, 30 Jun 2022 14:35:11 +0100 Message-ID: To: Larry Garfield , amakdessi@me.com Cc: php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Exception type hint From: Danack@basereality.com (Dan Ackroyd) 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. cheers Dan Ack