This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-13
Channels
- # adventofcode (51)
- # announcements (1)
- # babashka (7)
- # beginners (45)
- # berlin (2)
- # bristol-clojurians (1)
- # calva (38)
- # cider (2)
- # clara (25)
- # clj-kondo (2)
- # cljs-dev (25)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (6)
- # clojure-europe (5)
- # clojure-nl (1)
- # clojure-spec (15)
- # clojure-uk (93)
- # clojurescript (29)
- # clojutre (2)
- # core-async (78)
- # cursive (24)
- # datomic (29)
- # figwheel-main (1)
- # fulcro (50)
- # hugsql (1)
- # hyperfiddle (1)
- # luminus (1)
- # malli (26)
- # off-topic (40)
- # portkey (12)
- # reagent (22)
- # ring-swagger (1)
- # shadow-cljs (56)
- # spacemacs (24)
- # tools-deps (68)
Can a defined transformer access the schema ? So given [:map [:key {:option :cool} keyword?]] Can a transformer access the [:key {:option :cool} keyword?]] data ?
@johan178 yes, the current transformer is of type schema opts => value => value
, so:
[:map {:decode/string (fn [schema opts]
(let [cool (:option (m/properties schema))]
(fn [value] …)))}]
the syntax will change before hitting first public to:
[:map {:decode/string {:compile (fn [schema opts]
(let [cool (:option (m/properties schema))]
(fn [value] …)))}}]
@ikitommi Thanks for the quick PR review! Would you be open to me adding .nrepl-port
and .dir-locals.el
to gitignore? Alternatively if you want me to commit a .`dir-locals.el` it would make it so that new people contributing would automatically adhere to your style preferences
@rschmukler sure, go ahead, either way
:thumbsup:
.dir-locals.el
is only relevant to cider users, so I wouldn't commit them. In general tooling/IDE config files shouldn't live in source repos 😛
.dir-locals.el
is relevant to all emacs users
But I'm happy to not commit it - just could save PR time of people having to adjust their formatting to the project style
https://github.com/teknql/aave - First rendition of Aave!
Congratz on Aave!! I’ll add it to README as soon as the PRs are merged (just did the interceptor :compile
, will merge it after yours @rschmukler).
Woo! Thanks! Love the momentum we've got going on!
@ikitommi What're your thoughts for potentially adding support for a dynamic variable for either full on malli options, or perhaps something like *registry-extensions*
which is usually nil
but is automatically merged into default-registry
when set. I sometimes find myself having to thread malli options through things, or wrapping malli functions with my own namespace with a custom registry, etc. Since it's mostly for compile-time code anyway, the performance implications shouldn't matter much. Part of me feels like it might be too "magical" but the other part makes me feel like it could improve ergonomics
@rschmukler do you have plan to fix the 142? (the is the x
bug IMO + the formatting)
I think I already did no?
I force pushed updates an hour or two ago
Let me know if it needs anything. The x bug wasn’t caught by tests because map-of tests were disabled so I also fixed those
Awesome!
could you check https://github.com/metosin/malli/pull/146 ?
Yep, will take a look now
Looks good! Sorry I missed some indents