This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-05
Channels
- # adventofcode (95)
- # announcements (3)
- # babashka (11)
- # beginners (39)
- # boot (19)
- # bristol-clojurians (1)
- # cider (32)
- # clj-kondo (39)
- # cljsrn (8)
- # clojure (156)
- # clojure-dev (35)
- # clojure-europe (4)
- # clojure-italy (15)
- # clojure-nl (28)
- # clojure-spec (43)
- # clojure-uk (153)
- # clojurescript (168)
- # core-async (13)
- # core-logic (11)
- # cryogen (4)
- # cursive (13)
- # datomic (26)
- # duct (3)
- # emacs (8)
- # fulcro (33)
- # garden (4)
- # graalvm (18)
- # graphql (4)
- # jobs-discuss (2)
- # kaocha (1)
- # leiningen (3)
- # malli (8)
- # off-topic (1)
- # pathom (7)
- # re-frame (21)
- # reagent (3)
- # rewrite-clj (1)
- # schema (4)
- # shadow-cljs (40)
- # sql (2)
- # uncomplicate (3)
Sorry about that @ikitommi!!
Sequential schema doesn’t seem to be working correctly:
(m/encode [:sequential {:encode/string (constantly #(clojure.string/join "," %))}
string?]
["A" "B" "C"]
mt/string-transformer)
=> (\A \, \B \, \C)
instead of expected: "A,B,C"
the encode function correctly receives the input vector, and returns a string
the result should be a string
@roklenarcic I actually just ran into the same bug in a different manifestation! @ikitommi PR incoming...
What is the use case for the “interceptors” in Malli? What use cases did it solve? Because all I see is things getting more complicated and yet it adds no features. The interceptor change smells like cargo cult programming to me. Because http request/response frameworks have switched to interceptors, people think they are applicable to every problem. I just don’t see what it adds to Malli
You're right that in their current form they aren't that useful. The big draw to them would be if the :leave
could execute in a more post-walk fashion. Right now, for simple use cases, they give an opportunity for a transformer to finalize a value after most things are done (ie. all :leave
execute after all :enter
have finished). I'm hoping that we can make it a true postwalk, in which case they become much more useful