4 ms·
I'm confused. In every modern language I've used apart from go and terraform, only leading indentation matters and autoformatters do not apply mid-line alignmen
by ossopite 6y ago
I'm confused. In every modern language I've used apart from go and terraform, only leading indentation matters and autoformatters do not apply mid-line alignment or align subsequent lines against characters in a previous line.
edit: and maybe Haskell? the layout rules are complicated
personally I don't think lining up e.g. variable or parameter names in c style declarations improves readability at all, and it pollutes git diffs.
but I do use a monospace font in the terminal because many command line applications align their output into columns using spaces.
- elwell 6y agoGood point, it is usually the leading indentation that matters most. I guess since I use Clojure mostly, I like to be able to line up pairs in a map, or a let binding. This could potentially be achieved with tabs, but I'm a spaces guy so I think variable-spaced fonts would be problematic. > but I do use a monospace font in the terminal because many command line applications align their output into columns using spaces Ah, makes sense.