3 ms·
I used to like snake case and variants, but now I like something more elaborate: camel case with semantic underscores: Lx_DoThis -- function Lx_DoThis_
by Mikhail_Edoshin 4y ago
I used to like snake case and variants, but now I like something more elaborate: camel case with semantic underscores:
Lx_DoThis -- function
Lx_DoThis_Gen -- generic impl.
Lx_DoThis_Gcc -- GCC-specific
LxMyType -- type (class)
LxMyType_DoThat -- method
That is if I use underscore to separate words, I get names that appear to be composed of an arbitrary number of parts. I want that apparent composition to be meaningful.
In a more sophisticated language where types, methods, and variants have native support, this reduces to essentially camel case. Which still looks better to me because a single thing appears as as single word, not a random number of words.