try/catch idiom in std.datetime

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Nov 20 12:06:04 PST 2013


On 11/20/13 9:43 AM, Ary Borenszweig wrote:
> On 11/20/13 1:14 PM, Andrei Alexandrescu wrote:
>> On 11/20/13 5:00 AM, Dicebot wrote:
>>> On Wednesday, 20 November 2013 at 01:26:35 UTC, growler wrote:
>>>> ...
>>>>
>>>> Cheers.
>>>
>>> Very true. I sometimes switch between 3 to 4 different code styles
>>> within a single day when actively working on some D projects (internal
>>> one at work, Phobos style, vibe.d guidelines + one preferred style for
>>> random chosen project of the day). Pretty much only issue it causes is
>>> necessity to switch vim tab/space profiles ;) I fully expect any
>>> reasonable programmer to be able to conform any target code style just
>>> by a random call.
>>>
>>> There are no really good or bad styles, only consistent and inconsistent
>>> ones.
>>
>> Oh there are consistent styles that are worse than other consistent
>> styles of course.
>
> Of course: the ones you don't like.

What I meant is there are consistent styles that are objectively worse. 
Consistency is necessary but not sufficient.

Andrei



More information about the Digitalmars-d mailing list