[Rosettacode] D code line length limit
H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 7 07:44:26 PDT 2014
On Wed, May 07, 2014 at 01:25:52PM +0000, bearophile via Digitalmars-d-learn wrote:
> So far in Rosettacode D entries I've kept a line length limit of 72 or
> 73 chars.
>
> But now a little larger monitors are common, D UFCS chains are common,
> and we also have longer function signatures with "pure nothrow @safe
> @nogc" (that usually I put on a new line), so keeping that line length
> limit is becoming a little pain.
I have a 1600x1200 monitor, and I still prefer a maximum of 80 chars per
line. Lines that are too long are hard to read at a glance, regardless
of how narrow/short the monitor is.
But, how you choose to format your code is really up to you. ;-)
T
--
Elegant or ugly code as well as fine or rude sentences have something in
common: they don't depend on the language. -- Luca De Vitis
More information about the Digitalmars-d-learn
mailing list