journal/2020-12-23--16-50-17Z--effects_system_in_clojure.org
This commit is contained in:
parent
6f629d1d98
commit
39cd76e361
1 changed files with 5 additions and 0 deletions
|
@ -45,3 +45,8 @@ Within an effect system, you would be able to write something like this:
|
|||
test-db-eff]
|
||||
(my-action))
|
||||
#+end_src
|
||||
|
||||
You can imagine that =logs-eff= and =db-eff= to be /Effects/ the first
|
||||
could be used to write logs and the second one will be able to access a DB.
|
||||
And in the second bloc =test-logs-eff= would be a completely pure
|
||||
implementation of the =logs= and a fake =db= implementation.
|
||||
|
|
Loading…
Reference in a new issue