Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Rowan Collins
On 17 May 2015 16:02:40 BST, Levi Morrison wrote: >In this specific case we have broken all code out there. Yes, in the very specific case of people who both caught all exceptions and handled all E_RECOVERABLE errors, the existence of Throwable introduces a slightly worse BC break than without

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Levi Morrison
On Sun, May 17, 2015 at 7:10 AM, Rowan Collins wrote: > On 17 May 2015 00:44:03 BST, Levi Morrison wrote: >>On Sat, May 16, 2015 at 2:17 PM, Rowan Collins >> wrote: >>> On 16/05/2015 20:15, Levi Morrison wrote: The difference is that as time goes on and I've written code for PHP >>7 >>>

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Rowan Collins
On 17 May 2015 00:48:07 BST, Levi Morrison wrote: >It's also the principle of least astonishment: why isn't TypeException >caught by `catch (Exception $e)`? This is probably a good argument in favour of "Error" as naming for engine exceptions. If you say "TypeError is not caught by catch (Except

Re: [PHP-DEV] [VOTE] Exceptions in the engine

2015-05-17 Thread Rowan Collins
On 17 May 2015 00:44:03 BST, Levi Morrison wrote: >On Sat, May 16, 2015 at 2:17 PM, Rowan Collins > wrote: >> On 16/05/2015 20:15, Levi Morrison wrote: >>> >>> The difference is that as time goes on and I've written code for PHP >7 >>> I was hit by this issue. It's an even bigger issue than even I