[Issue 14924] Error in std.uri definition/description
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 15 19:26:05 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14924
--- Comment #3 from bb.temp at gmx.com ---
It looks like std.uri hasn't changed since it's been added in 2007. If you look
at the implementation it's really old fashioned D.
For example nowadays, for `emailLength()` and `uriLength()`, the parameter
would not be of type `in char[]` but at least `string` and even perahps an
InputRange with a constraint of type `if (isInputRange!T && isSomeChar!T)`...
I wouldn't be surprised if someone from the organisation would come and say
that's it's deprecated and that instead a Regex can be used. I hang on Dlang
only still one or two years so I can't say more...I may be wrong.
--
More information about the Digitalmars-d-bugs
mailing list