[LOGIC-74] Bug in conde (ClojureScript) Created: 26/Nov/12 Updated: 17/Mar/13 Resolved: 17/Mar/13
|Reporter:||Kevin De Valck||Assignee:||David Nolen|
While working on a project I found a somewhat strange behaviour. I reworked the problem in some simple predicate. Let's take this predicate foobad.
When running (l/run* [?f] (foobad 0)) it produces this error:
Because 0 is not an instance of Array it should not be entering that conde clause where it tries (seq 0).
With this workaround we get a normal behaviour:
Running (l/run* [?f] (foo 0)) gives us (), which is what we expect.
|Comment by David Nolen [ 28/Dec/12 12:49 AM ]|
I'm assuming this is referring the ClojureScript version of core.logic?
|Comment by David Nolen [ 17/Mar/13 7:00 PM ]|
This is not a bug. Goals do not delay evaluation in this way.