try/catch idiom in std.datetime

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 18 07:56:15 PST 2013


On 11/18/13 12:59 AM, Jacob Carlborg wrote:
> On 2013-11-18 08:28, Jonathan M Davis wrote:
>
>> That code's like that just because I like to put empty lines before
>> and after
>> if statements and before return statements, as I think that that improves
>> legibility. Short functions like that suffer as a result, because they
>> end up
>> with a larger proportion of the lines being empty than is normal. I'm
>> always a
>> bit torn on that, because I don't like having quite that many empty
>> lines in
>> so few lines, but I also don't like not having space around if
>> statements and
>> return statements. I never feel like I can find a nice, legible
>> balance with
>> short functions like that.
>
> I like the empty newlines as well. Otherwise it feels like reading a
> text without paragraphs.

But three newlines for four lines? That's not paragraphs, it's a grocery 
list.

Andrei




More information about the Digitalmars-d mailing list