News for hackers. Stuff that matters.
Re:Checked integer arithmetic in the prospect of C23 by dahfizz on Monday December 19, 2022 @12:50PM (#34055109)
The proposal fits my intuition. When the return value is an error code, truthy values are an error.

    int rc = func();
    if( rc ) { /*handle error*/ }

examples from the stdlib: connect(), stat(), etc. Hell, even main is defined to return 0 on success, nonzero on error.
Re:Checked integer arithmetic in the prospect of C23 by RustyRussell on Monday December 19, 2022 @05:17PM (#34058529)
Not for bool though.