Fork me on GitHub
#clojure-spec
<
2016-11-18
>
bbloom06:11:39

so instrument only works on functions right? right now i’m kinda wishing i could instrument a dynamic var...

bbloom06:11:54

w/o having to instrument every read/write to the var manually

bbloom06:11:06

i guess i could add a validator to an atom...

bfabry07:11:55

gate var alterations to a single function that's specced and instrumented?

bbloom07:11:09

yeah, that’s what i just did

bbloom07:11:21

would be nice to avoid the indirection tho 🙂

bfabry07:11:19

probably not much you can do reasonably in a watcher though

gfredericks16:11:54

@bbloom vars can have validators too, can't they?

bbloom17:11:00

@gfredericks huh, i guess they can - i wonder why i assumed they couldn’t? d’oh.

gfredericks17:11:32

Bet they can't in cljs