[Issue 17109] std.csv chokes on empty columns when parsing to struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jan 19 09:11:38 PST 2017


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

--- Comment #3 from Sophie <meapineapple at gmail.com> ---
It's a missing value, but in the case of numeric types a missing value is
simply one example of a malformed value. I think the better approach in the
code you used as an example would be to not expect the CSV logic to handle
malformed floats. Use the CSV parser to extract strings, and then your code
should assume responsibility for validating and handling malformed inputs.

--


More information about the Digitalmars-d-bugs mailing list