digitalmars.D.bugs - [Issue 15750] New: net/isemail uses lots of redundant helper methods
- via Digitalmars-d-bugs (26/26) Mar 03 2016 https://issues.dlang.org/show_bug.cgi?id=15750
https://issues.dlang.org/show_bug.cgi?id=15750 Issue ID: 15750 Summary: net/isemail uses lots of redundant helper methods Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: greeenify gmail.com In my cleanup task I saw that std.net.isemail seems to do some redundant effort and defines those methods as its own helper: - substr - max - compareFirstN - grep - get There is `backPop`! All of these methods (at least max, substr) feel general purpose enough that they should existent in a general fashion. Btw for max: doesn't work get with ranges, but there is a pending pull request. https://github.com/D-Programming-Language/phobos/pull/4019 --
Mar 03 2016