On Tuesday, 4 August 2015 at 20:23:53 UTC, Walter Bright wrote:
On 8/4/2015 4:53 AM, Steven Schveighoffer wrote:
Any assert(0) in druntime or phobos with a message printed is an error. It's
compiled in release mode.

When you're debugging phobos, you aren't compiling in release mode.

But I've also been of the opinion, not widely shared, that any programmer supplied messages in asserts are pointless.

Would you be of the opinion that assert should be a statement rather than an expression ? unreadability in the middle of expressions, especially when evaluation order is not well defined, is close to impossible to get right.

Reply via email to