Re: [PHP-DEV] [RFC] Exception type hint

2022-06-30 Thread Michał Marcin Brzuchalski
Hi Jeffrey, czw., 30 cze 2022 o 17:41 Jeffrey Dafoe napisał(a): > > -Original Message- > > From: Larry Garfield > > Sent: Wednesday, June 29, 2022 12:39 PM > > To: php internals > > Subject: Re: [PHP-DEV] [RFC] Exception type hint > > > > O

RE: [PHP-DEV] [RFC] Exception type hint

2022-06-30 Thread Jeffrey Dafoe
> -Original Message- > From: Larry Garfield > Sent: Wednesday, June 29, 2022 12:39 PM > To: php internals > Subject: Re: [PHP-DEV] [RFC] Exception type hint > > On Wed, Jun 29, 2022, at 10:42 AM, Guilliam Xavier wrote: > > Hi (note: your message was flagg

Re: [PHP-DEV] [RFC] Exception type hint

2022-06-30 Thread 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 probab

Re: [PHP-DEV] [RFC] Exception type hint

2022-06-30 Thread 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 go

Re: [PHP-DEV] [RFC] Exception type hint

2022-06-29 Thread Larry Garfield
On Wed, Jun 29, 2022, at 10:42 AM, Guilliam Xavier wrote: > Hi (note: your message was flagged as spam), > >> https://github.com/php/php-src/issues/8843 > > So I understand it as having a "true code" equivalent for the > `@throws` phpDoc comment (similar to type declarations for `@param` > and `@re

Re: [PHP-DEV] [RFC] Exception type hint

2022-06-29 Thread Guilliam Xavier
Hi (note: your message was flagged as spam), > https://github.com/php/php-src/issues/8843 So I understand it as having a "true code" equivalent for the `@throws` phpDoc comment (similar to type declarations for `@param` and `@return`)? which would also be checked at run-time? Just my 2 cents on