Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Yes, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: