News for hackers. Stuff that matters.
Re:CamelCase vs. Underscores: Revisited by atombender on Thursday January 26, 2023 @09:40AM (#34532118)
I never understood why some languages like Rust are so inconsistent here: snake_case for non-type identifiers, but PascalCase rather than Snake_Pascal_Case for types.

Maybe OP's study is real, but the underscore has always bothered me. I'm fine with it in principle, but it creates visual noise, since pretty much all fonts put the underscore below the baseline.

Here's a mockup that fixes the vertical placement of the underscore (right hand side):

https://i.imgur.com/5sF3QMH.png

Much better!

There are no comments on this comment yet.