4 ms·
> - octal: Nobody uses goddam octal and it's a trap for people used to leading zeroes in decimal. 0b..., 0x..., 0o... the latter is still a bit subtle (0Oo), b
by dom0 10y ago
> - octal: Nobody uses goddam octal and it's a trap for people used to leading zeroes in decimal.
0b..., 0x..., 0o... the latter is still a bit subtle (0Oo), but far more distinct and far less likely to happen by accident.
> - switch: actual operation is kind of bananas, see Duff's device. Should be block-based.
the goto-table semantics of switch are kinda useful in many instances, OTOH a compiler should be smart enough today to achieve the same degree of rather simple optimization.