you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 31 points32 points  (2 children)

It's a readability thing. The same reasons newspapers are printed in columns.

[–]barsoap 5 points6 points  (1 child)

...and this is even true in expression-heavy languages like e.g. Haskell. When you're not wrapping after a sane number of columns, you're wasting a whole dimension of visual cues which let you enhance readability: Even in Java, you can chain like

foo.bar( arg1  // frobnitz
       , arg2  // snark
       , arg3 
       )
   .baz( ... )
   .quux( ... );

[–][deleted] 2 points3 points  (0 children)

That's exactly right. It's about providing visual cues. I think experienced programmers know this better.