[Haskell-cafe] Optimal line length for haskell

Jake McArthur jake.mcarthur at gmail.com
Mon Oct 29 15:37:43 CET 2012

I stick to 80 columns fairly rigidly. This is not only so that it fits
into narrow windows, but also so that any two subexpressions in the
same expression tend to be close together on my screen, which makes it
easier for me to reason about it. If only it was easy for me to read
and write code on a Hilbert curve... :)

I don't think long lines indicate a design problem; it's solely a
formatting thing.

On Mon, Oct 29, 2012 at 7:50 AM, Rustom Mody <rustompmody at gmail.com> wrote:
> There was a recent discussion on the python list regarding maximum line
> length.
> It occured to me that beautiful haskell programs tend to be plump (ie have
> long lines) compared to other languages whose programs are 'skinnier'.
> My thoughts on this are at
> http://blog.languager.org/2012/10/layout-imperative-in-functional.html.
> Are there more striking examples than the lexer from the standard prelude?
> [Or any other thoughts/opinions :-) ]
> Thanks,
> Rusi
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list