Re: [PHP-DEV] Re: Error instead of returning false

2019-05-07 Thread Eugene Leonovich
On Tue, May 7, 2019 at 5:14 PM Mark Randall wrote: > On 07/05/2019 15:22, Gert wrote: > > My idea, extremely summarized, would be to take the functions that > > return false/null when they 'error', and instead make them actually > > throw an error. > > It comes up on various discussion forums

[PHP-DEV] Re: Error instead of returning false

2019-05-07 Thread Mark Randall
On 07/05/2019 15:22, Gert wrote: My idea, extremely summarized, would be to take the functions that return false/null when they 'error', and instead make them actually throw an error. It comes up on various discussion forums every other month. There's a few downsides to it, but mainly that