3 ms·
Is this really important? Sure, the source may be slightly polluted, but it's not going to slow down the application once it's compiled. Really, these sort of
by zbanks 16y ago
Is this really important? Sure, the source may be slightly polluted, but it's not going to slow down the application once it's compiled.
Really, these sort of things are probably good in code: they make it explicit that you are dealing with char's, and not some other datatype. If left out, it may look like a bug, causing debugging hassles.
- bnoordhuis 16y agosizeof(char) is a flag. Not bad in itself but often found inside bad code.
- chc 16y agoAgreed. I'm a strong proponent of lean codebases, but I still write `sizeof(char)`, because otherwise it's a dead ringer for a common mistake. Code should be concise only to the point that it doesn't become harder to read.