<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, 7 May 2018 at 06:28 Serhiy Storchaka <<a href="mailto:storchaka@gmail.com">storchaka@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">07.05.18 12:58, Eloi Gaudry пише:<br>
> I didn't mean to replace the current (debug) assert but I wanted to add <br>
> another one that would allow to be switch on or off on production builds.<br>
> <br>
> The need for a new keyword (not syntax) comes from this difference.<br>
> <br>
> <br>
>   I cannot think of another example that would convince you of the <br>
> benefit of having a specific keyword for such a runtime assert.  I do <br>
> believe that having such a feature in non-debug build is more than <br>
> interesting but indeed needed.<br>
<br>
I just don't understand why you need a new keyword for writing runtime <br>
checks.<br></blockquote><div><br></div><div>My question is how is this different to running with -O which leaves the assert statement out of the bytecode and so you avoid any run-time cost of the statement entirely? <br></div></div></div>