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

Adam Rutkowski hq@REDACTED
Fri Feb 14 15:19:26 CET 2014


http://thisotplife.tumblr.com/post/76347337005/when-i-see-people-making-a-case-for-tabs-instead-of

/A.

On Fri, Feb 14, 2014 at 2:56 PM, Federico Carrone <
federico.carrone@REDACTED> wrote:

> [image: Inline image 1]
>
>
> On Tue, Feb 11, 2014 at 6:53 AM, Loïc Hoguin <essen@REDACTED> wrote:
>
>> On 02/11/2014 02:17 AM, Richard A. O'Keefe wrote:
>>
>>> Our message crossed.
>>>
>>> On 11/02/2014, at 12:13 PM, Loïc Hoguin wrote:
>>>
>>>>
>>>> Indentation:
>>>>
>>>> myfunction(A, B, C,
>>>>     D, E) ->
>>>>
>>>> Alignment:
>>>>
>>>> myfunction(A, B, C,
>>>>            D, E) ->
>>>>
>>>
>>> I don't call that "alignment", I call that "evil".
>>> As far as I am concerned, one of the core rules of
>>> good indentation is
>>>   - the presence or absence of line breaks will
>>>     depend on the size of names and constants
>>>   - but the AMOUNT of indentation never will.
>>>
>>> Why?  Because indentation is supposed to reveal
>>> STRUCTURE, not spelling.
>>>
>>
>> I agree. Unfortunately many people align there.
>>
>>
>>  I would write this as
>>>
>>>      my_function(
>>>          A, B, C, D, E
>>>      ) ->
>>>
>>
>> That certainly looks better.
>>
>>
>> --
>> Loïc Hoguin
>> http://ninenines.eu
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
>
>
> --
> http://federicocarrone.com/
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140214/5e3acfaa/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 108637 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140214/5e3acfaa/attachment.png>


More information about the erlang-questions mailing list