3 ms·
> Case-sensitivity makes sense because it enforces uniformity of code. I don't see that case-sensitivity helps to achieve uniformity of code that much. Factors
by clouddrover 11y ago
> Case-sensitivity makes sense because it enforces uniformity of code.
I don't see that case-sensitivity helps to achieve uniformity of code that much. Factors like code structure, common design patterns, and source code formatting are more important. The approach to the structure and design of an application or library is something that each individual development group decides for themselves. Source code formatting can (and should) be enforced by formatting tools.
Having used a case-insensitive language for a while (Object Pascal) I find that developers tend to follow the case convention of a given software project anyway and if they don't the case-sensitive typos aren't an issue. They don't make the code harder to understand and it all compiles.
- im_down_w_otp 11y agoReading Erlang is really nice partially because all variables are capitalized (enforced by the compiler). You know immediately which parts of the code are what. It actually drives me a little nuts that I can't do the same thing in Elixir (compiler enforced lowercase) because so much of the code looks the same.