Variable name casing
elbrujohalcon opened this issue · 0 comments
elbrujohalcon commented
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.