News for hackers. Stuff that matters.
Re:C++26: A User-Friednly assert() macro by IshKebab on Saturday March 28, 2026 @06:55PM (#47558803)
Assert doesn't work like that in any language.
Re:C++26: A User-Friednly assert() macro by comex on Saturday March 28, 2026 @07:02PM (#47558836)
It does in Rust: assert is always enabled, whereas the debug-only version is called debug_assert.

But yes, “assert” in most languages is debug-only.

Re:C++26: A User-Friednly assert() macro by IshKebab on Sunday March 29, 2026 @04:18AM (#47561292)
He said

> some people would expect it to enforce that the pointer is non-null, then proceed

No language magically makes the pointer non-null and then continues. I don't even know what that would mean.

Re:C++26: A User-Friednly assert() macro by dataflow on Tuesday March 31, 2026 @07:18PM (#47594746)
If you don't even know what that would mean then it's premature to declare that nothing works that way. Understanding the meaning is a prerequisite for that.

In this case, it may help to understand that e.g. border control enforces a traveler's permission to cross the border, then lets them proceed.