News for hackers. Stuff that matters.
Re:The Little Bool of Doom (2025) by userbinator on Sunday February 08, 2026 @10:05PM (#46941127)
Zero as the absence of something definitely makes more sense as false than true. It is the case for these common C idioms:

    while(p) {
        // do something with p
        ...
        p = p->next;
    }

    if(err=foo()) {
        printf("Error %d occurred\n", err);
        ...
    }

There are no comments on this comment yet.