try/catch idiom in std.datetime

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 18 14:37:45 PST 2013


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.

Andrei




More information about the Digitalmars-d mailing list