Fork me on GitHub
#tools-deps
<
2020-07-07
>
pmonks15:07:43

@seancorfield might be time to consider creating a #seans-deps-edn channel here? 😉

pmonks23:07:40

Is there a preference or recommendation between these two (equivalent) styles of specifying a version:

{:deps {some/library {:mvn/version "2.7.42"}}}
and
{:deps {some/library #:mvn {:version "2.7.42"}}}
? (yes I realise this is a stylistic question not a technical one - I’m wondering if there’s a preferred / recommended / idiomatic style for deps.edn content)

hiredman23:07:16

I'd say namespaced maps are not mentioned in https://github.com/edn-format/edn, so if deps.edn is intended to live up to the .edn on the end, leave out the namespaced maps

pmonks23:07:47

Ooooh that’s very interesting! Thanks!

alexmiller00:07:27

the Clojure edn reader does read namespace maps but hiredman is correct that this is not currently part of the spec