Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C99 or C11?

Name: Anonymous 2013-12-29 4:40

Serious topic. No mention of C89 as it is objectively inferior to C99.

Name: Anonymous 2014-04-14 0:31

>>19
Honestly, I think if you're up against programmers who would write that example code, your problems aren't helped by #include <stdbool.h>.

#include <stdio.h>
#include <stdbool.h>

int main(void)
{
int foo = 5;

if (foo == true)
printf("This doesn't get printed, of course.\n");

return 0;
}


_Bool didn't do shit for that example! It's only a defense against that if you tell someone ``Dammit John, don't use if like that!'', and you can tell John that quite easily without stdbool.h.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List