News for hackers. Stuff that matters.
Re:Unix and Multics by PlunderBunny on Sunday May 12, 2024 @04:26PM (#40337333)
I'm sure this isn't an original idea, but I've always understood that an assert is intended for the developer, an error is intended for the user. Sometimes an assert can be by itself because you know that the invalid condition will be 'absorbed' (for want of a better word), and sometimes an assert is followed by an error because you want the developer to see more than what the error will display to the user.

There are no comments on this comment yet.