News for hackers. Stuff that matters.
Re:Dev Fonts by ossopite on Friday November 20, 2020 @05:18PM (#25165756)
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.

Re:Dev Fonts by elwell on Monday November 23, 2020 @02:54PM (#25190959)
Good 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.