[erlang-questions] Controversial subject of the day: tabs and spaces for indentation

Loïc Hoguin essen@REDACTED
Wed Feb 5 22:18:45 CET 2014


On 02/05/2014 09:48 PM, Raoul Duke wrote:
>> One line? That's the worst solution ever. You break every tool ever, and
>> even make *cat* and *less* useless (pun intended).
>> Code is text, so keep it readable without requiring any special crappy
>> editor.
>
> yes and no. these are the problems and solutions we have to trade off.
> what is the lesser evil in the long run? probably people disagree.

???

There is no evil, this is at most a minor annoyance that comes with 
pointless debates shrouded by blind religious beliefs.

The answer is always "submit code the way the project owner wants you 
to" and no amount of debating is going to change that, ever.

It's not even just tabs vs spaces, plenty other minor things are the 
author's choice, including number of columns, newline characters, source 
code encoding, but also major things like mandatory documentation or 
tests and backward compatibility.

There is no one true way of doing things, for this or for anything else. 
It's just a matter of choice.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list