Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handlers and activations #41

Closed
cgrand opened this issue Oct 18, 2019 · 1 comment
Closed

Handlers and activations #41

cgrand opened this issue Oct 18, 2019 · 1 comment
Labels

Comments

@cgrand
Copy link
Owner

cgrand commented Oct 18, 2019

I have a typical handler which is a relational expression

(ez/defhandler end-edition [selfx itemx]
  [[:db/add selfx :editing false]
   [:db/add itemx :title (:draft selfx)]])

The issue is that if it becomes a rule it needs to be passed an activation because its argument must be known before hand (because it's mostly doing interop/impure calls).

I'm starting to realize that these activations look suspiciously like supplementary predicates.

@cgrand cgrand added the diary label Oct 18, 2019
@cgrand
Copy link
Owner Author

cgrand commented Oct 22, 2019

Magic sets were indeed the right answer.

@cgrand cgrand closed this as completed Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant