Re: [RFC] Exception type hint
| From: | Dan Ackroyd | Date: | Thu, 30 Jun 2022 13:35:11 +0000 |
| Subject: | Re: [RFC] Exception type hint | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118133@lists.php.net to get a copy of this message | ||
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 <larry@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.
cheers
Dan
Ack