I get that returning error codes from functions is useful, and that 0 as "no err...

@Doomed_Daniel@mastodon.gamedev.place

I get that returning error codes from functions is useful, and that 0 as "no error" makes sense because there is only one "no error" case and potentially multiple different error cases.

But reading code like
if (!some_fun()) { ... }
with a meaning of "if some_fun() succeeded" will always interrupt my flow of reading the code, and sometimes actively confuse me.

Same for strcmp() and friends, of course.

just use `if (some_fun() == 0)`, FFS