Let's improve D's exceptions

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Thu May 14 05:41:19 PDT 2015


On Thursday, 14 May 2015 at 12:26:45 UTC, w0rp wrote:
> I wonder if enforce should throw an Error instead, if it exists 
> at all. Because it's designed to throw an exception you 
> shouldn't catch.

Is it really? My thought of enforce was it iwas just a lazy way 
to throw on cases like file not found...


More information about the Digitalmars-d mailing list