Skip to content
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

Variable name casing #90

Open
elbrujohalcon opened this issue Jun 23, 2020 · 0 comments
Open

Variable name casing #90

elbrujohalcon opened this issue Jun 23, 2020 · 0 comments

Comments

@elbrujohalcon
Copy link
Member


PascalCase for variable names

Use PascalCase for variable names and don't include underscores in between words.

good(These, VariableNames) ->
    TCPSocket = new_socket(),
    [These | are(very, good, VariableNames)].

bad(THESE, Variable_Names) ->
    Tcp_socket = new_socket(),
    [THESE | are(very, bad, Variable_Names)].

Reasoning: This is the convention adopted by most open-source erlang projects (and by OTP itself, to some extent). Using it would make your code more clear and readable for everybody.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant