[erlang-questions] Variable Name Capitalization

Robert Virding rvirding@REDACTED
Sat Aug 18 12:05:47 CEST 2007


I use different standards for atoms and variables:

In atoms I use_underscore to_separate_words because this is much easier to
to read and there is nu UC letter at the beginning anyway.

For variables I use capitalisation ToSeparateWords as there already IS an UC
letter at the beginning. BUT I very seldom use long variable names that are
more than one word. I find it much better, and more readable, to document
what the variable is for and use a short name.

This also makes it easier to see which are atoms and which are variables.

I don't know if there is an accepted "standard".

Robert

On 17/08/07, David Mercer <dmercer@REDACTED> wrote:
>
> For those of you who don't like to RunYourWordsTogether, how do you
> capitalize your multi-word variable names?  Do you capitalize all of the
> words or just the first one.  That is, Long_Variable_Name or
> Long_variable_name?
>
> Cheers,
>
> David
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070818/acafad6b/attachment.htm>


More information about the erlang-questions mailing list