try/catch idiom in std.datetime

Walter Bright newshound2 at digitalmars.com
Mon Nov 18 12:07:40 PST 2013


On 11/17/2013 10:32 PM, Andrei Alexandrescu wrote:
> 4. ...?

Revisit why removeUnitsFromHNSecs, etc., are throwing. Since the caller is 
guaranteeing they don't throw, I suspect the runtime data validation is itself 
invalid and the throws should be replaced with asserts.



More information about the Digitalmars-d mailing list