Re: options for a function

2012-02-23 Thread Michael
Jonas, Thanks for pushing this out so quickly. We're using it now and it works fine. On Feb 23, 12:32 am, Jonas wrote: > * Quote only when necessary (this is the default) This default is very handy. Michael -- You received this message because you are subscribed to the Google Groups "Cloju

Re: options for a function

2012-02-22 Thread Jonas
I just pushed the fix to github and released version 0.1.2. Sorry for the inconvenience. I'm not really happy with the write part of data.csv. In the clojure spirit of simplicity it "complects" quoting of values with writing to disk. There might be different policies for when an api-user wants

Re: options for a function

2012-02-22 Thread Jonas
I'll fix this today. Thanks, Jonas -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe

Re: options for a function

2012-02-22 Thread Sean Corfield
This seems like a bug in clojure.data.csv and someone should create a JIRA ticket for it, perhaps with a patch? http://dev.clojure.org/jira/browse/DCSV This once again makes me question why this CSV library ended up in contrib (without any discussion) rather than the more actively maintained and

Re: options for a function

2012-02-22 Thread Mark Rathwell
I don't know that there is necessarily a recommended way to offer options. Sometimes people want keyword options, sometime the want to take options as a map, sometimes they need to do it one way or another for various reasons, sometime they do it one way and later learn of a better way. To take o

options for a function

2012-02-22 Thread Michael
clojure.data.csv has options for the following: (defn write-csv "Writes data to writer in CSV-format. Valid options are :separator (Default \\,) :quote (Default \\\") :guote? (A predicate function which determines if a string should be quoted. Defaults to quoting only when nec