[erlang-questions] node.js vs erlang

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Fri Jun 20 16:52:29 CEST 2014

On Fri, Jun 20, 2014 at 4:47 PM, Leonard Boyce <leonard.boyce@REDACTED
> wrote:

> They are using Sublime as that's their editor of choice.
> When I started learning Erlang I was informed that the 'defacto'
> standard for indentation is the indentation used by elang mode for
> emacs as this was the primary erlang editor. Maybe I was misinformed,
> but that became our coding standard.

There is no preferred indentation style for Erlang programs. I've seen god
knows everything out there. The language is parsed by an LALR(1) grammar,
so identation doesn't matter for scoping either.

I tend to indent code for readability. Some times, another indentation
style than the mandated one is far more readable. So even when using emacs,
I break the rules now and then. I don't really see that as a problem.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140620/74abc75c/attachment.htm>

More information about the erlang-questions mailing list