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: [email protected]
Reporter: [email protected]
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
--