Skip to content

Commit

Permalink
plan
Browse files Browse the repository at this point in the history
  • Loading branch information
darkleaf committed Jun 29, 2024
1 parent 4ade555 commit ac9634d
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions plan.org
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
breaking changes

* no clash
* comment instument

нужно его лучше протестировать, но мы его не используем, можно просто выпилить

* ::di/wrap

#+begin_src clojure
(defn xxx
{::di/wrap (di/ref `with-...)}
[...]
...)
#+end_src

наверное только для сервисов,
и продумать api, чтобы миддлвара тоже была релоадабле

* remove Stoppable

1. Factory не декоратор
т.е. не врапаем в него, а играемся с ключами
2. fmap -> (derive :key f args)
3. Factory должен стопать сам

* DONE no clash
#+begin_src clojure
(defn jetty
{::di/kind :component}
Expand All @@ -13,7 +36,7 @@ breaking changes
...)
#+end_src

* unreachable arity
* DONE unreachable arity

#+begin_src clojure
(defn jetty
Expand All @@ -38,7 +61,7 @@ will throw "Unreacheble arity 0"
will throw "Unexpected arity 2 for component"
it's ok for services

* update-key & instrument
* DONE update-key & instrument

#+begin_src clojure
(di/update-key `foo assoc :bar (di/ref `bar))
Expand All @@ -48,9 +71,3 @@ it's ok for services
Or we could generate a virtual key for such arguments like
~di/add-side-dependency~ do. In this case every arg is a factory
with virtual generated key.

* env-parsing

probably it could be applied not only to envs

so I could change the name

0 comments on commit ac9634d

Please sign in to comment.