2 ms·
For anyone put off by nim's copious use of camelCase and PascalCase, I recently learned that nim treats identifiers as the same if after removing all underscore
by Arch-TK 5y ago
For anyone put off by nim's copious use of camelCase and PascalCase, I recently learned that nim treats identifiers as the same if after removing all underscores the identifiers compare equal case-insensitively (except for the first character which is case sensitive). This means you can completely ignore NEP 1 (just like you can ignore PEP 8) and write your code with snake_case identifiers and Upper_snake_case types including any calls to external code.
This means that for people like me who find camelCase horribly ugly and refuse to casually use any language which uses it in its standard libraries or syntax (I'm looking at you haskell and zig) you can write code in a more aesthetically pleasing way while everyone else around you can continue using the horrific camelCase names (even when referring to your snake_case code).
Also, I highly recommend switching to at least 3 space indents so that unlike regex your code stops being write-only.