Background
I have recently found an old article about Elixir, where the author explains some conventions about Elixir, and in specific, naming and structural conventions for Phoenix projects.
In this article the author mentions:
Module names in Elixir follow the UpperCamelCase convention. (…) and the file name has the same name as the module but uses snake_case as a convention. Why? I don’t know.
(emphasis added by me)
The author mentions the possibility of a technical reason for this. I am unaware of what technical reason could exist, and my belief is that this was mostly a style decision (needs confirmation).
Question
So the question here is the title:
Why are module names in Elixir UpperCamelCase, while the file names are snake_case?
The article is from 2022, so there is a good chance someone (maybe even the author) figured this one out. But I couldn’t find anything regarding this, and curiosity did get the best of me.
- Why do you think this is the case?
- What technical reasoning do you think could be behind this?