[Issue 16209] std.string.isNumeric can work with forward ranges
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 23 13:33:49 PST 2016
https://issues.dlang.org/show_bug.cgi?id=16209
--- Comment #6 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Jack Stouffer from comment #5)
> I doubt that parse can handle all of the esoteric inputs that isNumeric can
> handle right now.
That's part of the problem. There's very little use of a function that tells
you something is numeric, that is not complemented by a function that tells you
what the actual number is.
This function is inspired from scripting languages that need it for logic such
as "if it looks like a number, consider it a number". Has no place in D.
--
More information about the Digitalmars-d-bugs
mailing list