Jim <jimpil1...@gmail.com> writes:

> On 16/05/13 12:52, AtKaaZ wrote:
>> why not ref and dosync?
>
> a bit heavyweight isn't it?

Yep, that's the problem. The library in question
(https://github.com/phillord/tawny-owl) is meant to be usable by people
who don't want to know that they are writing clojure.


>
> dynamic scope is another story though...I very much intentionally stayed away
> from it!
>


It's useful, but scary. It mixes with laziness badly, but then, so do
exceptions.

It's nice, though for use in test fixtures....

(defn ontology-reasoner-fixture [tests]
  (binding [r/*reasoner-progress-monitor*
            r/reasoner-progress-monitor-silent]
    (tests)))

for instance. This prevents the code from either poping up a GUI or
generating lots of spam output, which is not good in a test.

Phil

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to