Fork me on GitHub
#datomic
<
2016-09-18
>
magnars04:09:25

Any thoughts on the namespaced keywords in Datomic vs the ones we need for clojure.spec? I don't want to put fully qualified namespaces into my data model, since data lives longer than code.

robert-stuttaford08:09:36

can you expand on what you mean by fqns, @magnars?

robert-stuttaford08:09:04

you mean e.g. :org.your-company.your-app.your-module/thing vs simply :module/thing?

magnars08:09:22

yes. As far I understand, spec encourages the former, since you can then use the :: - but I guess that it is entirely optional since the spec registry is global.

robert-stuttaford08:09:40

yeah. so we have to deal with this at some point too, when we start using spec

robert-stuttaford08:09:09

:: syntax is really nice, but, of course, you can also just not use it for those things you're specing that will live in Datomic

robert-stuttaford08:09:25

that is, i'd just (s/def :module/thing some-spec)

magnars08:09:30

yeah, that makes sense. I was initially under the impression that the fqns were significant (that clojure would look up the spec def in that ns), so that contributed to my confusion.

robert-stuttaford08:09:06

naw, it's in an atom i believe

magnars08:09:29

yeah, it's global, so that's no issue