[dmd-internals] Throwing Errors

Walter Bright walter at digitalmars.com
Mon Mar 12 14:30:34 PDT 2012



On 3/12/2012 12:34 PM, Sean Kelly wrote:
>
> I'm on the fence about whether attempting cleanup when an Error is thrown is desired behavior.  If there is no cleanup, why allow Errors to be caught at all?  We may as well simply call abort() at the point they're thrown.
>

So that an informative message can be printed, the backup engaged, attempt to 
shut down gracefully, log the failure details to a file, etc.


More information about the dmd-internals mailing list