core-async

jmv 2025-04-30T16:58:58.261119Z

is the intent with init/transition to construct stateful connections to things like external databases or apis? i did that for a kafka job but looking at it in the monitor server leaks credentials so i'm wondering if i'm using it wrong.

Alex Miller (Clojure team) 2025-04-30T17:03:26.833699Z

Yes, but that’s a good note for @jarrodctaylor

jmv 2025-04-30T17:05:43.758179Z

i can wrap in something like this for now

(deftype Secret [val]
  clojure.lang.IDeref
  (deref [_] val))

(defn secret [val] (->Secret val))

jmv 2025-04-30T17:06:18.873479Z

Alex Miller (Clojure team) 2025-04-30T17:11:01.792449Z

Maybe we should datafy the state - that would give the step-fn the option to tailor