picrin icon indicating copy to clipboard operation
picrin copied to clipboard

CSV library

Open stibear opened this issue 11 years ago • 4 comments

I'm thinking about implementing a csv library. What do you think about an API of this?

stibear avatar Jul 15 '14 10:07 stibear

@stibear

read-csv and write-csv? I'm not sure. Please let me know once you implemented the library. I will add it as one of contribution libraries.

nyuichi avatar Jul 15 '14 11:07 nyuichi

Which returned value do you think is better:

  • a list of list
  • a list of vector
  • a ilst of hash (if header exists)
  • a vector of ~

KeenS avatar Jul 15 '14 11:07 KeenS

@stibear @KeenS

I believe list of list would be the best. vector is not very good at iteration. Providing another function operating on hash-table (dictionary is good I guess) for the fast data processing would be great, though.

nyuichi avatar Jul 15 '14 12:07 nyuichi

@wasabiz Okay, I try to implement once. @KeenS I also prefer returning a list of list.

stibear avatar Jul 15 '14 12:07 stibear