davidsantiago / clojure-csv

A library for reading and writing CSV files from Clojure
187 stars 35 forks source link

Header row consumption? #26

Closed metasoarous closed 9 years ago

metasoarous commented 9 years ago

Some tools (such as python csv module) support consuming headers, so that rows can be returned as dictionaries. Is this something you'd consider supporting? I'd be happy to either add this, or create my own project if you want to keep core functionality simple.

davidsantiago commented 9 years ago

What I like about this code is that it only interprets the CSV structure, and does no further interpretation of it. It gives and expects strings of the CSV cell contents, and that's it. Higher level ideas of what is in the CSV are better handled at the layer that interprets the CSV data. Hopefully this library makes writing those functions turn into a task that is only a few lines for most people. But there's no idea of serializing/deserializing here, by design.