Fork me on GitHub
#clojure-spec
<
2016-07-04
>
dhruv08:07:25

@alexmiller: thank you very much! That explanation clears it up for me, plus s/int-in works a treat for my purposes 👍:skin-tone-3:

eggsyntax13:07:55

It'd be useful to have an undef fn or something like that, to clear a spec from the registry. Or some way to clear the registry entirely. Mostly just for use during development. Or, for that matter, just make the registry-ref atom publicly accessible.

rauh14:07:35

@eggsyntax: Hack: (reset! @#'spec/registry-ref {})

eggsyntax14:07:47

@rauh: Oooh, slick. Thanks!

eggsyntax14:07:07

I didn't realize that'd get around the private declaration. Good to know in general.

Alex Miller (Clojure team)14:07:04

@eggsyntax we’ve talked about this and I expect there will be something public like this

eggsyntax14:07:58

Sounds good. & Andre's hack will do me fine for now 🙂