journal/2020-12-23--16-50-17Z--effects_system_in_clojure.org

This commit is contained in:
Yann Esposito (Yogsototh) 2020-12-23 17:01:47 +01:00
parent 6f629d1d98
commit 39cd76e361
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -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.