Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.logic by

7 Answers

0 votes
by

Comment made by: dnolen

Can you reformat the patch w/ git so it has the proper attribution information? Thanks!

0 votes
by

Comment made by: jasonjckn

New patch with attribution info. Sorry about super long turn around time, in the future I should be much faster.

0 votes
by

Comment made by: martintrojer

This patch solved the exact same problem for me aswell.

Cheers...

0 votes
by

Comment made by: dnolen

I've yet to hear a good rationale for this patch. defrel has the same semantics as def and should only exist at the top level. If someone puts more though into what defining a rel dynamically should look like I will consider it.

0 votes
by

Comment made by: jasonjckn

I only implemented this so I could delete relation state. There's probably a better way to do this though.

0 votes
by

Comment made by: martintrojer

Indeed, a make-rel function would be optimal, then you can def it (or store it somewhere else) at your leisure.

0 votes
by
Reference: https://clojure.atlassian.net/browse/LOGIC-28 (reported by jasonjckn)
...