by unwind · 13y ago · 0 comments
It's way too long to do a rebuttal here, though.
Some problems:
- Bad terminology ("C has no object", when in fact the term really is very useful in C even though it probably doesn't mean what you expect if you come from C++ or Python)
- "Booleans don't exist", I don't understand how the author can both acknowledge C99 and say this. Booleans do exist! Their name is not so user-friendly, unless you include stdbool.h, then you get bool, true and false.
- Pure random errors, like the first structure example code ("struct point foo={x: 5, y: 4};", what are those colons and numbers doing there?!)
And so on.
This just makes me cry.
Also, if you represent U+0000 by 0xC0 0x80, then it's "Modified UTF-8", and it's not valid UTF-8.
http://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html
These days, you should spell it:
struct point foo = { .x = 5, .y = 4 };