Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread Mike Schinkel
> On Mar 6, 2021, at 1:00 PM, Larry Garfield wrote: > > On Thu, Mar 4, 2021, at 8:08 AM, G. P. B. wrote: >> Hello internals, >> >> This new RFC which I'm proposing is to extend the capability of the error >> control operator @ to not just suppress diagnostic messages but also >> exceptions. >> I

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread Mike Schinkel
> On Mar 6, 2021, at 10:30 AM, G. P. B. wrote: > > As Rowan has addressed your first points, I'll skip them but will add a code > example to clarify in the RFC. > > On Fri, 5 Mar 2021 at 04:26, Mike Schinkel > wrote: > > This proposal on it's own would not be suff

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread Rowan Tommins
On 06/03/2021 18:00, Larry Garfield wrote: My first thought is that if you're throwing away exceptions, you're therefore performing an expensive operation (generating a backtrace for the exception) that will then be discarded, and thus is wasted effort. I think regardless of any new syntax,

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread Larry Garfield
On Thu, Mar 4, 2021, at 8:08 AM, G. P. B. wrote: > Hello internals, > > This new RFC which I'm proposing is to extend the capability of the error > control operator @ to not just suppress diagnostic messages but also > exceptions. > It can currently be found on GitHub: [1] > https://github.com/Gir

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread G. P. B.
On Thu, 4 Mar 2021 at 22:05, Rowan Tommins wrote: > On 04/03/2021 14:08, G. P. B. wrote: > > This new RFC which I'm proposing is to extend the capability of the error > > control operator @ to not just suppress diagnostic messages but also > > exceptions. > > It can currently be found on GitHub:

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread G. P. B.
As Rowan has addressed your first points, I'll skip them but will add a code example to clarify in the RFC. On Fri, 5 Mar 2021 at 04:26, Mike Schinkel wrote: > > This proposal on it's own would not be sufficient to trigger such a > change > > for extensions but in combination with another propos

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-06 Thread Rowan Tommins
On 05/03/2021 04:26, Mike Schinkel wrote: 1. What @ means and what it would look like in practice, 2. What catch(union_class_list) would look like in practice, 3. What @<\Throwable>expression means and what it would look like in practice, and 4. Can you provide a few concrete code examples, plea

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread Mike Schinkel
> On Mar 4, 2021, at 9:08 AM, G. P. B. wrote: > > Hello internals, > > This new RFC which I'm proposing is to extend the capability of the error > control operator @ to not just suppress diagnostic messages but also > exceptions. > It can currently be found on GitHub: [1] > https://github.com

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread G. P. B.
On Thu, 4 Mar 2021 at 21:53, Christoph M. Becker wrote: > On 04.03.2021 at 18:46, G. P. B. wrote: > > > On Thu, 4 Mar 2021 at 16:06, AllenJB wrote: > > > >> On a related note I dislike "documentation burden" as an argument > >> against improvements. I obviously understand "open source, volunteer

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread Rowan Tommins
On 04/03/2021 14:08, G. P. B. wrote: This new RFC which I'm proposing is to extend the capability of the error control operator @ to not just suppress diagnostic messages but also exceptions. It can currently be found on GitHub: [1] https://github.com/Girgias/error-control-operator-exceptions-rfc

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread Christoph M. Becker
On 04.03.2021 at 18:46, G. P. B. wrote: > On Thu, 4 Mar 2021 at 16:06, AllenJB wrote: > >> On a related note I dislike "documentation burden" as an argument >> against improvements. I obviously understand "open source, volunteers, >> translations, etc" but I've heard this a few times now as an ar

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread G. P. B.
On Thu, 4 Mar 2021 at 16:06, AllenJB wrote: > > On 04/03/2021 14:08, G. P. B. wrote: > > Hello internals, > > > > This new RFC which I'm proposing is to extend the capability of the error > > control operator @ to not just suppress diagnostic messages but also > > exceptions. > > It can currently

Re: [PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread AllenJB
On 04/03/2021 14:08, G. P. B. wrote: Hello internals, This new RFC which I'm proposing is to extend the capability of the error control operator @ to not just suppress diagnostic messages but also exceptions. It can currently be found on GitHub: [1] https://github.com/Girgias/error-control-ope

[PHP-DEV] [RFC] Extend error control operator to suppress exceptions

2021-03-04 Thread G. P. B.
Hello internals, This new RFC which I'm proposing is to extend the capability of the error control operator @ to not just suppress diagnostic messages but also exceptions. It can currently be found on GitHub: [1] https://github.com/Girgias/error-control-operator-exceptions-rfc The main motivation