Fork me on GitHub
#clojure-spec
<
2019-08-01
>
ben.mumford14:08:56

are there any best practices anywhere on where in the code to define specs? at the moment i'm defining function specs alongside the function they go with and don't have a consistent strategy for where to define the specs (spec/def ...) - usually in a few large files

ben.mumford14:08:44

cheers. i'm guessing then that are no suggestions from rich and the crew?

jjttjj14:08:24

This is extremely shaky ground on which to make a decision, but here's a cognitect example of a spec only namespace: https://github.com/cognitect-labs/day-of-datomic-cloud/blob/b4103e4a8f14518ed3f6d7f66f56cbf863117974/src/datomic/dodc/repl_ui/specs.clj