Re: clojure.core.unify and exceptions

2012-06-07 Thread Brian Marick
On Jun 6, 2012, at 5:59 PM, Kevin Livingston wrote: > I was surprised to find that clojure.core.unify returns an exception > when something does not unify rather than something like nil (false) > when they don't. You can use core.logic's unifier: user=> (require '[clojure.core.logic :as l]) us

clojure.core.unify and exceptions

2012-06-06 Thread Kevin Livingston
I was surprised to find that clojure.core.unify returns an exception when something does not unify rather than something like nil (false) when they don't. If you always expect something to unify, I guess sure, but a very standard use of a unifier is to test if two things unify or not, where it's a