RFC: style cleanup & guidelines for GHC, and related bikeshedding
Alexander Berntsen
alexander at plaimi.net
Thu Jul 17 08:57:38 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 17/07/14 08:57, Johan Tibell wrote:
> * Wider screens let you have several Emacs buffers next to each
> other. At 80 chars you can have about 2 buffers next to each other
> on a 13" screen.
This is my main grief with 100 char lines (which is the Android
standard, by the way). I like to have 6 or 8 files open side by side
(including diffs and other meta-code).
> * The eye has trouble traveling back to the next line if lines get
> too long (at least when reading prose). Research says around 60-70
> characters is optimal, if I recall correctly.
66 as far as I remember, but that number is for prose and thus not
*very* relevant, as Manuel points out. But I do think it's a problem
in code too, regardless of the exact number. Being at 80+ is also
often an indication that you're in dire need of refactoring.
So while we're all chiming in, my preferences in order:
78
72
80
less than 72
more than 80
- --
Alexander
alexander at plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iF4EAREIAAYFAlPHkAIACgkQRtClrXBQc7VVpwD+K2Q8NYplnmJdNYTulHx4hQBP
GVeBJjYQifYrr6MoQq8BAJNP3IUyq+pg+VsGqJg4tCkrv6nmfM1teExzE2avz0/u
=76Tq
-----END PGP SIGNATURE-----
More information about the ghc-devs
mailing list