[Haskell-cafe] Optimal line length for haskell

Rustom Mody rustompmody at gmail.com
Mon Oct 29 13:05:43 CET 2012


On Mon, Oct 29, 2012 at 5:29 PM, Iustin Pop <iustin at google.com> wrote:

> On Mon, Oct 29, 2012 at 05:20:20PM +0530, Rustom Mody 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 :-) ]
>
> For what is worth, in our project (Ganeti) which has a mixed
> Python/Haskell codebase, we're using the same maximum length
> (80-but-really-79) in both languages, without any (real) issues.
>
> regards,
> iustin
>

Sure!

There can hardly be a case that 80 causes any issues.
Just that a bit more than 80 can sometimes lead to distinctly more elegant
programs.
Too much more than 80 can cause issues with readability and/or other tools.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121029/95e21067/attachment.htm>


More information about the Haskell-Cafe mailing list