core.logic

Provide more convenient syntax for defining a series of facts

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Activity

Hide
David Nolen added a comment -

not going to do the anonymous rel bit. fact/facts are now fns not macros.

Show
David Nolen added a comment - not going to do the anonymous rel bit. fact/facts are now fns not macros.
Hide
David Nolen added a comment -

The patch mostly looks good. However defrel no longer takes args and it should (this breaks some tests). The args are like documentation and in the future I'd like to support syntax like this:

(defrel child ^:index p1 ^:index p2)

For specifying which elements of the tuple to index.

Show
David Nolen added a comment - The patch mostly looks good. However defrel no longer takes args and it should (this breaks some tests). The args are like documentation and in the future I'd like to support syntax like this: (defrel child ^:index p1 ^:index p2) For specifying which elements of the tuple to index.
Hide
Pepijn de Vos added a comment -

Patch added for anonymous relations and extending existing relations. Removed superfluous macros in the process. API is slightly different now.

Show
Pepijn de Vos added a comment - Patch added for anonymous relations and extending existing relations. Removed superfluous macros in the process. API is slightly different now.
Hide
Pepijn de Vos added a comment -

Not sure if this is a separate issue, but I'd like various ways to create a relation from a seq. Possibly anonymous.

(rel [['monkey 'banana] ['foo 'bar]])

Show
Pepijn de Vos added a comment - Not sure if this is a separate issue, but I'd like various ways to create a relation from a seq. Possibly anonymous. (rel [['monkey 'banana] ['foo 'bar]])

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: