logoalt Hacker News

jmulltoday at 4:09 PM1 replyview on HN

I believe this is just about the behavior of std.debug.assert.

You can pretty easily have a different kind of assert that disappears in release builds (if you want).


Replies

dnauticstoday at 5:59 PM

It's in the article.

> you can implement your own version that internally checks a build-time flag, approximating C/C++ behavior