Messages in this thread | | | Date | Fri, 22 Feb 2008 13:29:31 +0100 | From | "Bart Van Assche" <> | Subject | Re: [ofa-general] Re: Merging of completely unreviewed drivers |
| |
On Fri, Feb 22, 2008 at 2:46 AM, David Newall <davidn@davidnewall.com> wrote: > Krzysztof Halasa wrote: > > Perhaps we should increase line length limit, 132 should be fine. > > Especially useful with long printk() lines and long arithmetic > > expressions. > > Yes; or even longer. 80 characters might have made sense on a screen > when the alternative was 80 characters on a punched card, but on a > modern computer it's very restrictive. That's especially true with the > deep indents that you quickly get in C. Even short lines often need to > be split when you put a few tabs in front of them, and that makes > comprehension that bit harder, not to mention looks ugly.
There is a reason to limit line length: scientific research has shown that readability of regular texts is optimal for a line length between 55 and 65 characters. My experience is that the readability of source code decreases when the lines are very long (more than 160 characters).
Bart Van Assche.
| |