[phobos] lots of spurious code that doesn't work
Jonathan M Davis
jmdavisProg at gmx.com
Fri Jan 21 22:11:47 PST 2011
On Friday 21 January 2011 19:48:09 Andrei Alexandrescu wrote:
> I'd love to have a minimal stylistic checker upon checkin. For one
> thing, I don't find any reason for two empty lines and I don't plan to
> rearrange the monitor sideways for more vertical space.
LOL. std.datetime would fail miserably on that one. I don't think that I have
two lines empty lines within any functions, but pretty much all of the
functions, structs, and classes have two empty lines between them rather than
one. Single empty lines are used within functions and between a function and its
corresponding unittest block, but aside from that most everywhere in
std.datetime has two empty lines. Particularly with documentation at the
beginning of every function, it seemed easier to read that way. It's pretty rare
that I'd put two empty lines in a function though. That would just be wasted
space. I tend to use it to separate distinct entities rather than spacing within
an entity.
- Jonathan M Davis
More information about the phobos
mailing list