try/catch idiom in std.datetime

Walter Bright newshound2 at digitalmars.com
Mon Nov 18 14:04:00 PST 2013


On 11/18/2013 1:02 PM, Jacob Carlborg wrote:
> I really don't understand the point in having some functions thrown and others
> assert.

That's a red flag that there is a faulty design somewhere, in this case I think 
it's not having a separation between input data validation and program bug 
detection.



More information about the Digitalmars-d mailing list