www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15208] New: Eradicate all uses of "Enforcement failed" in

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

          Issue ID: 15208
           Summary: Eradicate all uses of "Enforcement failed" in Phobos
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P5
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

Using enforce() with no message has clearly shown to be poor practice. This
class of diagnostic bugs has appeared in a number of instances:

https://issues.dlang.org/show_bug.cgi?id=15133
https://issues.dlang.org/show_bug.cgi?id=14949
https://issues.dlang.org/show_bug.cgi?id=9404
https://issues.dlang.org/show_bug.cgi?id=5462

(and variations of the above - just search Bugzilla for "Enforcement failed")

We should eradicate all uses of the message-less enforce() in Phobos, at least.

--
Oct 15 2015