Keyword namespacing best practices

2018-09-30 Thread Michael Gardner
I'm looking for some feedback on keyword namespacing. Say you're writing an API to be used by external clients that works something like this: (fetch url :timeout 10) => {:status 200, :body "..."} Would you namespace the :status and :body keywords in the response? What about the :timeout kwarg

Re: Keyword namespacing best practices

2018-09-30 Thread Eric Lavigne
I would not use keyword namespaces in this situation. Users of the "fetch" function will likely type :timeout, :status, and :body when using this function. Keyword namespaces would just force users to type longer names for these. On Sunday, September 30, 2018 at 9:45:56 PM UTC-4, Michael Gardn

Re: Keyword namespacing best practices

2018-09-30 Thread Michael Gardner
> On Sep 30, 2018, at 18:54, Eric Lavigne wrote: > > I would not use keyword namespaces in this situation. Users of the "fetch" > function will likely type :timeout, :status, and :body when using this > function. Keyword namespaces would just force users to type longer names for > these. Th

clojure

2018-09-30 Thread venkata sai
can anyone provide me a way how to solve this pproblem. i have to map these items based on thier input type . the output will be .clj file i have attached. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: clojure

2018-09-30 Thread Pankaj Doharey
The code is incorrect, if you want something like this : (onto/defconcept BENZODIAZEPINE_MED) (onto/defconcept HOSPICE_ENC) this has the same premise as your previous question in this post https://groups.google.com/forum/#!topic/clojure/nrAeWCLC-Vc I think you should consider learning c

Re: clojure

2018-09-30 Thread venkata sai
this is different one. you want to map thier respective type and put it in a set of maps On Monday, October 1, 2018 at 10:16:11 AM UTC+5:30, Pankaj Doharey wrote: > > The code is incorrect, if you want something like this : > > (onto/defconcept > BENZODIAZEPINE_MED) > > (onto/defconcept >

Re: clojure

2018-09-30 Thread Pankaj Doharey
Aah, a map in clojure looks like : {:a 1 :b 2 :c 3} Which of those symbols in the *.csv* file are keys and values? On Monday, 1 October 2018 10:18:22 UTC+5:30, venkata sai wrote: > > this is different one. you want to map thier respective type and put it in > a set of maps > > On Monday, Oct

Re: clojure

2018-09-30 Thread venkata sai
i mean this is set of maps you have to map them under one particluar category On Monday, October 1, 2018 at 10:22:41 AM UTC+5:30, Pankaj Doharey wrote: > > Aah, a map in clojure looks like : > {:a 1 :b 2 :c 3} > > Which of those symbols in the *.csv* file are keys and values? > > > On Monday,

Re: Keyword namespacing best practices

2018-09-30 Thread Alan Thompson
It is easy to overdo it when trying to predict future needs. I always (now) do the minimal solution, with the expectation that it *may* evolve in the future. Since the parts that do need change (say 5% ?) are usually not the ones I would have predicted, I am usually very glad I didn't over-engine