[Issue 13543] std.file.FileException has useless __FILE__ and __LINE__ arguments tacked on

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 29 11:18:34 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13543

--- Comment #20 from Stewart Gordon <smjg at iname.com> ---
(In reply to Walter Bright from comment #9)
> Again, Exceptions are NOT A DEBUGGING TOOL and should NOT BE THROWN WHEN
> BUGS ARE DETECTED. Use asserts for that. Asserts are designed for that, and
> are pretty good at it.

I don't think anybody here is trying to use exceptions as a debugging tool.  A
bug might naturally manifest itself in the form of an exception being thrown. 
And when this happens, naturally the programmer will want to know what has
triggered it.  Of course, this is what the stack trace is for.

--


More information about the Digitalmars-d-bugs mailing list