Is phobos too fluffy?

Adam D. Ruppe destructionator at gmail.com
Sun Sep 20 21:13:53 UTC 2020


On Sunday, 20 September 2020 at 20:46:42 UTC, mate wrote:
> Interesting. How long are your longest lines?

$ cat $(git ls-files '*.d') | awk '{print length}' | sort -rn | 
head
3036
826
826
819
793
610
593
568
488
488


lol, but I'd note that's almost certainly skewed by documentation 
comments, which I usually let automatically word-wrap (and if you 
don't, you should btw, it is so so so so so much nicer to work 
with).

Of the 156,000 lines though:

400 are > 180. (0.3%, likely documentation paragraphs)
1,600 are between 120 and 180. (1%, likely docs again)
7,700 are between 80 and 120. (5%, more likely actual code)

The remainder are < 80. (94%)


I did NOT convert tabs to spaces for this.


More information about the Digitalmars-d mailing list