Implementing Runnable does not mean they will be called via an intermediate
thread.

I remember having seen it's there for efficiency reasons when one wants to
provide a function in lieu of where the java method expects a Runnable : so
clojure does not have to wrap the function call with another object
implementing Runnable itself.

HTH,

-- 
Laurent

2009/4/3 BerlinBrown <berlin.br...@gmail.com>

>
> Someone correct me if I go wrong here.  But, from my understanding,
> every defined function in Clojure is an implementation of a thread?
>
> What is the goal in implementing in this fashion?  For example, if I
> am writing in imperative style:
>
> (println "First line")
> (println "Second line")
> (println "Third line")
>
> ...
>
> The operations have to occur synchronously.  What does adding Java
> threading add to the mix?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
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