3 ms·
I work in embedded software, and I've sometimes felt mildly reactionary for suggesting that yeah, we can use C99. It's not "new". Really! We have "bool" now, fo
by unwind 11y ago
I work in embedded software, and I've sometimes felt mildly reactionary for suggesting that yeah, we can use C99. It's not "new". Really! We have "bool" now, for when things are, you know, Boolean! And we can declare variables where we need them, not in a huge prelude in the function ...
- phkahler 11y agomore importantly you can - and should - use int16_t and int32_t.
- Gibbon1 11y agoI know they are C99 but I swear I was using stdint or something like it circa 1996
- caf 11y agoITYM "revolutionary" - a "reactionary" is basically the opposite (in a shop that uses C89, a reactionary might advocate for switching back to K&R C).
- caf 11y agoMore useful than bool and mixed-declarations-and-code, in my opinion, are: designated initialisers; compound literals; inline functions; and varargs macros.