Fork me on GitHub
#malli
<
2021-03-27
>
borkdude10:03:35

I think I'll land on:

{:tasks {:clean [:shell {:description "foo"} "rm -rf target"]}}

borkdude10:03:45

thanks duckie :)

duckie 3
Panel11:03:01

Just curious if you are using Malli to make the DSL ?

borkdude11:03:19

not really no

borkdude11:03:08

although malli would probably be a good fit for validation

borkdude13:03:46

Landed on this one:

{:tasks {:clean {:description "Foo" :task [:shell "rm -rf target"]}}}

borkdude13:03:05

Not hiccup as usual, but I think the cleanest so far

ikitommi14:03:08

@borkdude looks good, I would have suggested a map too, keeps the concepts separated.

ikitommi14:03:32

Malli also has the generic map-syntax and have explored a third, simpler (clj-fx-like) map-syntax.

ikitommi14:03:03

Need to pick a "better" map-syntax for malli 1.0.0, but will be first-class support, in malli.core. One can't mix syntaxes (terse/hiccup and map) freely, just one allowed per AST fragment.

borkdude14:03:53

@ikitommi what is clj-fx-like map syntax? would love to see it