Re: Changing default assertion mode to throw exceptions

From: Date: Mon, 13 Jul 2020 17:51:58 +0000
Subject: Re: Changing default assertion mode to throw exceptions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-110979@lists.php.net to get a copy of this message
Hi! > > 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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > Couldn't agree more, but I always assumed this BC break could be too big before. Did you make any research on the impact already? Otherwise +1 Ty, Márcio

« previous php.internals (#110979) next »