[erlang-questions] Controversial subject of the day: tabs and spaces for indentation
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Feb 6 08:25:43 CET 2014
Greetings,
These are opinions, not facts.
I think that formatting code as it goes into the repository is a good
thing. What are the arguments against it?
bengt
On Wed, 2014-02-05 at 15:45 -0600, kraythe . wrote:
> I have long favored the enforcement of coding style at the repository
> level. Then it doesnt matter if someone accidentally reformats their
> local copy, the checkin will reformat it accordingly. I dont think
> people will ever agree on the "right" format in something that is
> inherently a matter of taste. I like tight code with only 2 char
> indents and as much on the screen at once. Another guy I know loves
> drop braces with a brace on the next line (for java, C, etc). Neither
> of us is wrong. If the repo checkin had a reformatter, it wouldn't
> matter.
>
> Robert Simmons Jr. MSc. - Lead Java Architect @ EA
> Author of: Hardcore Java (2003) and Maintainable Java (2012)
> LinkedIn: http://www.linkedin.com/pub/robert-simmons/40/852/a39
>
>
> On Wed, Feb 5, 2014 at 3:36 PM, Vlad Dumitrescu <vladdu55@REDACTED>
> wrote:
> > If the debate uncovers some workarounds that make the pain
> less
> > painful (pun intended), then even better.
>
>
> I just found out that we could do something like this to
> reindent files:
>
> emacs -batch sample.erl --eval '(indent-region (point-min)
> (point-max)
> nil)' -f save-buffer
>
> /Vlad
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list