Re: [PHP-DEV] [RFC] [Discussion] JSON_THROW_ON_ERROR

2017-09-13 Thread Andrea Faulds
Hi Jakub, I already replied to you off-list, but for the benefit of people on-list… Jakub Zelenka wrote: On Sun, Sep 10, 2017 at 2:24 AM, Andrea Faulds wrote: Hi everyone, Craig Duncan previously sparked discussion here about JSON's error-handling behaviour. Unfortunately, his attempt to ch

Re: [PHP-DEV] [RFC] [Discussion] JSON_THROW_ON_ERROR

2017-09-12 Thread Jakub Zelenka
On Sun, Sep 10, 2017 at 2:24 AM, Andrea Faulds wrote: > Hi everyone, > > Craig Duncan previously sparked discussion here about JSON's > error-handling behaviour. Unfortunately, his attempt to change it seems not > to have gone anywhere, but I have his blessing to try this other approach > instead

Re: [PHP-DEV] [RFC] [Discussion] JSON_THROW_ON_ERROR

2017-09-10 Thread Bradley Weston
I definitely hate having to test the return value and then getting the error message via a function call. +1 for ability to throw exceptions instead. On 10/09/17 02:24, Andrea Faulds wrote: Hi everyone, Craig Duncan previously sparked discussion here about JSON's error-handling behaviour. U

[PHP-DEV] [RFC] [Discussion] JSON_THROW_ON_ERROR

2017-09-09 Thread Andrea Faulds
Hi everyone, Craig Duncan previously sparked discussion here about JSON's error-handling behaviour. Unfortunately, his attempt to change it seems not to have gone anywhere, but I have his blessing to try this other approach instead. So here's an RFC: https://wiki.php.net/rfc/json_throw_on_er