2 ms·
Not quite favourite, and not a language change, but in C, C#, Java, I would change the IMO ridiculous idea to write CONSTANTS in uppercase. I understand that p
by Someone 15y ago
Not quite favourite, and not a language change, but in C, C#, Java, I would change the IMO ridiculous idea to write CONSTANTS in uppercase.
I understand that preprocessor macros have to stand out because they have different semantics (arguments might be evaluated multiple times, use of ## to fabricate tokens, etc), but i do not think
- In C, macro names are by convention uppercase
- in C, one used to use macros to define constants
- hence, in each C-inspired language, constant names must, by convention be uppercase
is a valid syllogism.
- deleted 15y ago[deleted]