color lib
Chris Wright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Oct 6 19:25:16 PDT 2016
On Fri, 07 Oct 2016 11:42:08 +1000, Manu via Digitalmars-d wrote:
> I think throwing is the precedented action in that failure case...
> what would you suggest?
In C# 1.0, the standard pattern was to throw on errors. Later, they
revised their preferred mechanism and started offering methods like:
static bool TryParse(string str, out DateTime dt) {...}
More information about the Digitalmars-d
mailing list