Re: RFC: expectations/assertions

From: Date: Mon, 03 Feb 2014 17:28:24 +0000
Subject: Re: RFC: expectations/assertions
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-72090@lists.php.net to get a copy of this message
On Feb 3, 2014 6:18 PM, "Levi Morrison" <morrison.levi@gmail.com> wrote:
>
> I support the idea behind improving assert; I really should be able to
say 'disable assertions' somehow and then assertions would have no impact
at runtime. I have not reviewed the changes for the revised RFC at this
time, but I wanted to voice my support for the general idea.
>
> Also:
>
> > assert never was a good thing to use
>
> This is just nonsense. Properly used asserts are fundamental in defensive
programming and you can quite a bit of literature about it. Perhaps Pierre
meant to say, "assert never was a good thing to use *in PHP*"

Indeed in php, and I do not use it in c either btw.


Thread (44 messages)

« previous php.internals (#72090) next »