3 ms·
OTOH, because of the same rule, the following abomination is legal in C++, but its analogous in Nim would trigger a compilation error: int main() {
by ziotom78 8y ago
OTOH, because of the same rule, the following abomination is legal in C++, but its analogous in Nim would trigger a compilation error:
int main() {
int myVar = 1;
int my_var = 2;
int mYVAR = 3;
int myVAR = 4;
// ...
}
I have seen a few codes in my life where complex routines with multiple nest levels had variables with names "x", "X", "_x", etc.
- nimmer 8y agoYes, and not being able to have two different variables in the same code named "cryptotoken" and "crypto_token" is a feature. It saved me few bugs already.