Why the CSV standard library is broken (and how to fix it) Part VII or What's Your Type? Guess. Again. And Again. And Again. Guess What's a Schema For?


(Gerald Bauer) #1

Hello,

    I've written a new (and sevenths) episode on why the CSV standard
library is broken (and how to fix it).

  The heart of the CSV standard library is the String#split kludge.

  What else is dangerously simplistic and naive?

  Let's have a look at the built-in type conversion [1].
  Will it surprise you? Yes, it is broken, broken, broken. How? Why?

  Questions and comments welcome. Cheers. Prost.

PS: If you want to see other (more) CSV formats / dialects pre-configured and
supported "out-of-the-box" in the new csv reader, please tell.

[1] https://github.com/csvreader/docs/blob/master/csv-types.md