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
On 10/09/17 02:24, 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.
> So here's an RFC: https://wiki.php.net/rfc/json_throw_on_error
> The feature can be described in a single paragraph (in fact, the title
> is pretty much enough, the patch is just detail) but it's better to go
> through the proper RFC process.
> Please tell me what you think.