Fork me on GitHub
#tools-deps
<
2020-02-15
>
penryu09:02:31

I'm used to seeing maven dep versions in deps.edn as {:mvn/version "0.4.490"}}, but I've found one that specifies deps with #:mvn{:version "0.4.490"}. Looks like a reader macro, but I haven't seen it before.

borkdude09:02:03

that's called a namespaced map

penryu09:02:09

it looks like it's equivalent to the other syntax; are they interchangeable?

borkdude09:02:24

see "Map namespace syntax" here: https://clojure.org/reference/reader#_map_namespace_syntax it's supported since 1.9 and yes, they are interchangeable

penryu09:02:49

Ah, you can use it to factor out a common namespace in map keys?

penryu09:02:02

That's exactly what I was missing. Thanks, @borkdude.

borkdude17:02:57

since plk is a kind of port of the clojure bash script and is listed here: https://github.com/clojure/tools.deps.alpha/wiki/Tools#runtimes would it make sense to add deps.clj there as a port of the clojure bash script to clojure itself?

borkdude17:02:17

Might make sense to add here: https://github.com/clojure/tools.deps.alpha/wiki/Tools#deps-management, since that also lists other viz tools (cc @benedek)

benedek17:02:57

done

🎉 4