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 <la...@garfieldtech.com> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to