cgrand / enlivez

8 stars 0 forks source link

Handlers and activations #41

Closed cgrand closed 4 years ago

cgrand commented 4 years ago

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 commented 4 years ago

Magic sets were indeed the right answer.