[Issue 15750] New: net/isemail uses lots of redundant helper methods
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Mar 3 09:21:01 PST 2016
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 at puremagic.com
Reporter: greeenify at 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
--
More information about the Digitalmars-d-bugs
mailing list