dashbitco / nimble_csv

A simple and fast CSV parsing and dumping library for Elixir
https://hexdocs.pm/nimble_csv
772 stars 51 forks source link

make it work with use. #53

Closed fcevado closed 4 years ago

fcevado commented 4 years ago

I've started to use NimbleCSV recently and using the define/2 function is very restrictive. Right now the defined module will only be able to do what NimbleCSV insert there, and I won't be able to add more functions to that module. That's why I think working with use NimbleCSV, opts would be better. If you agree I can start working on making it support both.

josevalim commented 4 years ago

I am quite keen in the current approach where the module is closed. So in your case I suggest to have a module that wraps the NimbleCSV module and delegates the relevant functions. :) Thanks!