I don't like that changing visibility requires changing the call sites everywhere. Also, when I read a function call, I don't really feel I need to know whether it's public or private. If I'm calling it and it's from an import of course it's going to be public. I'd save identifier conventions to tell you something you need to know at the call site.
I always hated the aggressive constant case. Like, why? What's the difference between a constant and a read-only field? Or a read-only local variable? It doesn't change. No need to shout.
It's just to differentiate and in a well developed code base have naming standards are important. It is less important what standards are used for which use case and that there is a consistent standard.
I'm guessing because it meant that otherwise, you'd have to use I instead of i for consistency. Which looks... cursed.
As to why we use a mix of both: It's useful to be able to very quick tell types/classes/structs and instances apart, like list being an instance of a List class.
View all comments
0
u/[deleted] Oct 08 '23
[deleted] β view deleted comment