try/catch idiom in std.datetime

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 18 14:52:41 PST 2013


On 11/18/13 2:49 PM, Walter Bright wrote:
> On 11/18/2013 2:37 PM, Andrei Alexandrescu wrote:
>> On 11/18/13 1:50 PM, Walter Bright wrote:
>>> I believe this is solving the problem in the wrong place. The function
>>> being called should not be throwing, and should be defined as not
>>> throwing. See my other posts in this thread on the topic.
>>
>> I think a stance of unceremoniously halting the program upon passing
>> the wrong
>> parameters to a standard library function is a bit excessive.
>
> Dang, I gotta argue this with you too? :-)

Yes. I agree with your fundamental point but it is missing important 
nuances. I destroyed the misunderstanding in http://goo.gl/3xD5Aj.

Andrei



More information about the Digitalmars-d mailing list