You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
snake_case for module names, function names, and atoms in general
Use snake_case for module names, function names and atoms in general and avoid uppercase letters in them.
-module(good_module).
good_function_name(a_good_atom) ->
{ok, [is, a, reasonable_atom, to, use].
badFunctionName(a_Bad_Atom) ->trytO:avoidTheUsage() ofpascalCase -> or_Bad_Snake_Casecatch_ -> 'please!'end.
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.
The text was updated successfully, but these errors were encountered:
snake_case for module names, function names, and atoms in general
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.
The text was updated successfully, but these errors were encountered: