This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-20
Channels
- # announcements (16)
- # aws (1)
- # babashka (24)
- # beginners (54)
- # calva (25)
- # cider (4)
- # cljs-dev (2)
- # clojure (16)
- # clojure-dev (39)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-uk (4)
- # clojurescript (66)
- # core-async (16)
- # cursive (13)
- # datomic (15)
- # deps-new (1)
- # duct (22)
- # fulcro (20)
- # jobs-discuss (1)
- # kaocha (3)
- # lsp (11)
- # malli (8)
- # off-topic (38)
- # other-languages (18)
- # polylith (18)
- # portal (15)
- # react (2)
- # reagent (9)
- # reitit (7)
- # releases (10)
- # reveal (1)
- # sci (13)
- # shadow-cljs (3)
- # specter (4)
- # sql (4)
- # xtdb (16)
(assert
(= (m/form [:=> [:cat :int] :int])
(m/form {:type :=>
:input {:type :cat
:children [{:type :int}]}
:output {:type :int}}))
"malli supports both hiccup & map syntax")
https://github.com/metosin/malli/pull/544/commits/e44f8c027699a63f73b941137151e5a489501587
Is this unified in the sense that all hiccup gets internally turned into maps and then whatnot or two separate paths? Just trying to think onwards whether this could actually be a cause of sneaky conversion bugs in the long run…
(I haven’t looked into malli internals in ages so judging a single commit diff doesn’t answer that to me)
there is just one path, currently the map-syntax (the new ast) is transformed into properties children
and thus, the old code path is used.
I’ll most likely reverse that, so the default path is the AST, just a hiccup->ast converter is just mechanical.