Skip to content

Variable name casing #90

@elbrujohalcon

Description

@elbrujohalcon

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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions