[Issue 15208] New: Eradicate all uses of "Enforcement failed" in Phobos
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Oct 15 16:43:54 PDT 2015
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 at puremagic.com
Reporter: thecybershadow at 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.
--
More information about the Digitalmars-d-bugs
mailing list