4 ms·
Another situation is when you have to interface with some other language that doesn't have this feature and where nameLikeThis and name_like_this both exist and
by WesolyKubeczek 4y ago
Another situation is when you have to interface with some other language that doesn't have this feature and where nameLikeThis and name_like_this both exist and mean different things. Thus requiring you to work it around with a third naming convention.
Here's one illustration: https://github.com/nim-lang/RFCs/issues/456#issuecomment-1113989084 https://github.com/nim-lang/RFCs/issues/456#issuecomment-111...
We have partial case-insensitivity in PHP. Can't say I'm very fond of it, but I'm ambivalent as long as it's not abused.
- xigoi 4y agoYou should rename foreign identifiers anyway. C names are usually very cryptic.
- WesolyKubeczek 4y agoThis has a drawback that when reading the original documentation, not only do you have to mentally translate the code examples into your target language, but also translate the identifiers too. And "C names are usually very cryptic" is plain false, unless you talk about APIs coming from the ages and compilers where all identifiers had to be 8 characters or fewer in length.