Re: Changing default assertion mode to throw exceptions
| From: | Levi Morrison via internals | Date: | Mon, 20 Jul 2020 13:48:48 +0000 |
| Subject: | Re: Changing default assertion mode to throw exceptions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-111075@lists.php.net to get a copy of this message | ||
On Mon, Jul 13, 2020 at 11:37 AM Levi Morrison <levim@php.net> wrote:
>
> Hello everyone,
>
> I'd like to change the default mode of assertion failures to throw.
> The current default is to warn. In my opinion this is a bad strategy:
> the engine asserted that something that is expected to be true is not,
> so executing further is a bad idea. This leaves throwing or bailing
> out. I think throwing an exception is better than bailing out, so
> that's what I propose.
Hello, everyone. It's been a week and I have only heard a bit of
positive feedback and no pushback. Anyone else want to reply?