| ▲ | nealabq 6 hours ago | |||||||
I don't mean to be that guy, but for "functional" programmers a print statement has "side effects". But your meaning is clear. In an assert expression, don't call functions that might change the program/database state. Be as "const" as possible. | ||||||||
| ▲ | toxik 5 hours ago | parent [-] | |||||||
Not just for functional programmers. Prints and other I/O operations absolutely are side effects. That's not running counter to the point being made. Print in an assert and NDEBUG takes away that behavior. | ||||||||
| ||||||||