Hi,

Am 13.06.2010 um 18:31 schrieb Moritz Ulrich:

> Thanks for your answers.

Wouldn't it be more appropriate to have a *server* Var, which is allowed to be 
rebound by the user? The function can still use optional arguments to configure 
the server directly in a call.

(declare *server*)

(defn do-query
  [... & {:keys [server] :or {server *server*}]
  ...)

This looks more comfortable and clean than doing Var-Voodoo.

Sincerely
Meikel

-- 
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 from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to