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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 27 13:16:47 PDT 2014


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

          Issue ID: 13543
           Summary: std.file.FileException has useless __FILE__ and
                    __LINE__ arguments tacked on
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: bugzilla at digitalmars.com

I take exception (!) to this notion. As a computer user (not
a programmer) what would one think about error messages from an
application that printed file and line of something internal to the
app's source code? WTF, right? FileException is being
confused here with being a programmer debugging tool. It is NOT.
Exceptions are not for debugging programming errors. They're for
reporting on input errors. They're being confused with asserts here.

--


More information about the Digitalmars-d-bugs mailing list