[Issue 16209] std.string.isNumeric can work with forward ranges

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Dec 23 13:30:00 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16209

--- Comment #5 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Andrei Alexandrescu from comment #4)
> I think we should just undocument `isNumeric` and cease enhancing it. It's a
> terrible function. A simple way to figure out whether something is numeric
> is simply parse it as a number - the work done is similar and you get the
> number too.

1. someone would first need to make sure that every input on isNumeric works
with parse
2. and if so we could just make isNumeric forward to parse 

That way you don't have to go through the deprecation cycle.

I doubt that parse can handle all of the esoteric inputs that isNumeric can
handle right now.

--


More information about the Digitalmars-d-bugs mailing list