On Mon, Nov 18, 2013 at 6:26 PM, Kevin Downey <redc...@gmail.com> wrote:

>
> https://github.com/sonian/Greenmail/blob/master/src/clj/greenmail/db.clj#L98-L126
> has an example, using clojure.core.logic/all to make a goal which is a
> conjunction of the clojure.core.logic/== goals


Based on my experience writing pldb, using == in this situation is going to
work better than using unify as shown in the code sample base on the video.
 I found that using unify for this type of custom relation appears to work
but will not do the right thing with more complicated situations.  I found
constraints particularly problematic.  Switching from unify to == makes
sure everything you want to happen on unify actually happens.

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