Give clj-http a try (https://github.com/getwoven/clj-http). It has an
architecture similar to the one of Ring. Especially the Ring-style
middleware helps a lot, if you want to add custom behaviour like error
handling to clj-http.
On 27 Jan., 02:21, Michael Ossareh ossa...@gmail.com wrote:
On
Hi,
Given this example:
(defn hello [ {:keys [a b]}]
hello)
= (hello :foo bar) ; :foo isn't listed!
hello
How can I disallow all keys except :a and :b in this example?
Regards,
Shantanu
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to
Laurent PETIT laurent.pe...@gmail.com wrote:
2011/1/20 Ken Wesson kwess...@gmail.com
On Wed, Jan 19, 2011 at 9:39 AM, Rayne disciplera...@gmail.com
wrote:
Aren't you a developer?
I'm not a CCW developer.
If a code.google link is the top of google results, that's what I'm
going to click
you could do something like this, but I'm curious --- why do you want
to restrict the function's inputs in this way?
(defn hello [ {:keys [a b] :as input}]
(assert (= (set (keys input)) #{:a :b}))
hello)
sincerely,
--Robert McIntyre
On Sat, Jan 29, 2011 at 1:19 PM, Shantanu Kumar
On Jan 30, 1:26 am, Robert McIntyre r...@mit.edu wrote:
you could do something like this, but I'm curious --- why do you want
to restrict the function's inputs in this way?
As they are optional arguments, it's possible that somebody might
misspell a key and spend time debugging. The intention
On Sat, Jan 29, 2011 at 1:46 PM, Mike Meyer
mwm-keyword-googlegroups.620...@mired.org wrote:
Ditto. Most often, the code site is the sole project site, and everything
is there. Some larger projects may have a separate home page, but it's
always prominently mentioned on the code site. In
I see, so you wanted to allow some subset of the optional arguments.
Might I recommend the following?
Sets are already functions that check for inclusion of the objects on
which you call them, so instead of (contains? some-set ele) just
(some-set ele) will work. Also, upon actually making a typo
On Jan 30, 3:18 am, Robert McIntyre r...@mit.edu wrote:
I see, so you wanted to allow some subset of the optional arguments.
Might I recommend the following?
Sets are already functions that check for inclusion of the objects on
which you call them, so instead of (contains? some-set ele)
Hi all,
i stumbled upon this code, and am curious why it's not working:
user (defn makea []
(def a 232))
#'user/makea
user (makea)
#'user/a
user a
232
user (ns-unmap *ns* 'a)
nil
user (makea)
#'user/a
user a
--- Unable to resolve symbol: a in this context
[Thrown class
On Sat, Jan 29, 2011 at 5:18 PM, Robert McIntyre r...@mit.edu wrote:
I see, so you wanted to allow some subset of the optional arguments.
Might I recommend the following?
Sets are already functions that check for inclusion of the objects on
which you call them, so instead of (contains?
On Sat, Jan 29, 2011 at 5:42 PM, David Steiner
davidsteiner2...@gmail.com wrote:
another question i had: is there a way to destroy java objects in clojure?
how do i set an object to null, so the garbage collector can do it's thing?
You just discard all references to an object. Clojure's
11 matches
Mail list logo