[Rosettacode] D code line length limit

Nick Sabalausky via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 7 08:46:34 PDT 2014


On 5/7/2014 9:25 AM, bearophile 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.
>
> So probably I'll increase the maximum line length. Rosettacode rules
> forbids too much long lines, and while in my code I use a limit of about
> 90-100 in my code, this is too much for online wiki pages. So I'll do
> some tests, and I think for Rosettacode D entries I'll increase the
> limit to about 80 chars.
>
> Bye,
> bearophile

72-73 chars would indeed be a pain. In my own code I like to use a soft 
limit of 80, FWIW.

I do find I need to break up lines in D more than I would in other 
languages, especially function signatures.



More information about the Digitalmars-d-learn mailing list