Hi,

Am 28.11.2009 um 01:48 schrieb André Thieme:

I don‘t know if this makes sense and what problems may arise, and even
if
such a proposal sounds nice in theory it may be too hard to develop,
for
now.

Maybe something like this:

(defn receive-request
  [req]
  (let [snapshot {#'fun-a fun-a
                  #'fun-b fun-b
                  #'fun-c fun-c}
        handler  (fn []
                   (with-bindings snapshot
                     (handle-request req)))]
    (.start (Thread. handler))))

Of course you then have to take care when being lazy or switching threads.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to