New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"You should only have one top-level namespace and it should be the name of the application" #151
Labels
Comments
This would be a welcome addition to the style guide. There a few rules to tease out:
These are the relevant rules from publishing to Hex:
Are there any other considerations? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recently, Eric Meadows-Jönsson noted to me that one of my Elixir libraries did not adhere to the following convention:
I had not heard this convention before, although I can certainly appreciate its worth (both greatly reducing the chance of libraries conflicting with each other because they happened to use the same names and making it more clear to the users of the library from what library a certain piece of code originates).
Needless to say, I have not adhered to this convention in the past in multiple places, resulting in libraries that I'll now release backwards-incompatible upgrades for.
In any case, I think that it might be good to add this rule to the style guide. (Unless, of course, there are people against it!)
The text was updated successfully, but these errors were encountered: