Re: How to handle configuration in Clojure?

2014-01-13 Thread Josh Smith
On Monday, January 13, 2014 8:50:54 AM UTC-5, James Trunk wrote: > > I've been investigating how to handle configuration in a Clojure > application/library, and have discovered two main candidates: dynamics vars > and argument passing. > I would suggest you add Environment variables to your list

Re: questions about datalog

2009-09-12 Thread Josh Smith
On Sep 12, 9:53 pm, Robert Luo wrote: > Thank you Josh for your answer. Thank you for being interested in the datalog library. :) > I have read the sources of datalog, however, literal.clj and the ideas > of the query language behind it is unknown for me, thus I can not > understand it qu

Re: questions about datalog

2009-09-12 Thread Josh Smith
On Sep 12, 6:21 am, Robert Luo wrote: > Two more questions: > 3. In datalog.database , it is required that every tuple must has > exactly same field as in database define, is that possible to just > define some necessary fields, and tuples appended can have additional > optional fields? > 4. What

macro escapes and passing method names are function arguments

2009-06-09 Thread Josh Smith
I've been trying to understand the macro syntax in clojure. I think macro's are closer to the kind of functionality I'm looking for (as opposed to multi-methods) but I'm not sure. http://gist.github.com/126315 I wrote the above code, which simply processes Java-style Properties files (using the