[phobos] excessive vertical spacing?

Jacob Carlborg doob at me.com
Mon Jan 28 00:45:04 PST 2013



On Jan 27, 2013, at 09:11 PM, Andrei Alexandrescu <andrei at erdani.com> wrote:

> There's been sporadic discussion every now and then about recommended
> style etc. Time to add to it :o).
>
> I've noticed excessive empty lines in a few Phobos modules. For example:
>
> @property SysTime timeLastModified()
> {
> _ensureStatDone();
>
> return SysTime(unixTimeToStdTime(_statBuf.st_mtime));
> }
>
> And so on for functions of 2-5 lines, and there's a bunch of them. It
> would be difficult to argue that the vertical space adds to clarity as
> the whole thing is just there.
>
> Can we agree to be a bit more sparing with empty lines? If there's one
> resource that's not abundant to all of us, that must be vertical space.

It don't understand the obsession in cutting down on vertical space. Are you afraid you're going to run out. It's not like we're writing on a physical piece of paper.

I think it adds clarity. Not using a few empty newlines here and there is like writing a piece of text without any paragraphs. It just makes it harder to read.

This particular example you give would make no difference with or without the empty newline.

--
/Jacob Carlborg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20130128/1f3d7777/attachment.html>


More information about the phobos mailing list