At Thu, 4 Mar 2021 15:27:27 -0600, Will Senn <will.senn(a)gmail.com> wrote:
Subject: Re: [TUHS] tabs vs spaces - entab, detab
Wow, mixed tabs and spaces? On purpose? That's nuts :).
In code tabs are for indentation -- one tab per level of indentation.
In code spaces are for alignment -- e.g. to align comments at the end of
the line use spaces between the end of the code and the beginning of the
comment.
(for those of us who use emacs there's smart-tabs-mode -- it's not
perfect, but it helps get these things right the first time around,
i.e. when you don't have "go fmt")
--
Greg A. Woods <gwoods(a)acm.org>
Kelowna, BC +1 250 762-7675 RoboHack <woods(a)robohack.ca>
Planix, Inc. <woods(a)planix.com> Avoncote Farms <woods(a)avoncote.ca>