3 ms·
> lowercase_with_underscores aka snake_case > UpperCamelCase aka PascalCase But yeah I agree it’s curious that they use these the other way around from what
by codetrotter 4y ago
> lowercase_with_underscores
aka snake_case
> UpperCamelCase
aka PascalCase
But yeah I agree it’s curious that they use these the other way around from what I am used to in Python and Rust.
- dmytrish 4y agoI'm just guessing, but snake_case might be inspired by dependently typed programming languages, where there's no strict boundary between terms and types. PascalCase for variables reminds me of unification-based programming languages like Prolog.