Is phobos too fluffy?
SeeWebsiteForEmail at erdani.org
Sat Sep 19 15:08:12 UTC 2020
On 9/19/20 9:00 AM, data pulverizer wrote:
> On Thursday, 17 September 2020 at 15:51:18 UTC, Andrei Alexandrescu wrote:
>> As wc -l counts, phobos has some 330 KLOC:
>> $ wc -l $(git ls-files '*.d') | tail -1
>> 331378 total
>> I noticed many contributors are fond of inserting empty lines
>> discretionarily, sometimes even in the middle of 2-5 line functions,
>> or right after opening an "if" statement. The total number of empty
>> $ git grep '^$' $(git ls-files '*.d') | wc -l
>> So Phobos has 11.62% empty lines in it [...]
> At the risk of starting WW3, I'd like to propose using 2 space code
> indent over 4 spaces or tabs. Indents just don't need that much space.
Jesting aside, that would actually increase average complexity of the
code because it would allow people to nest more.
More information about the Digitalmars-d