This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-18
Channels
- # architecture (14)
- # beginners (89)
- # cider (336)
- # cljsrn (2)
- # clojure (181)
- # clojure-berlin (1)
- # clojure-dusseldorf (3)
- # clojure-finland (4)
- # clojure-germany (5)
- # clojure-italy (18)
- # clojure-norway (10)
- # clojure-spec (9)
- # clojure-uk (94)
- # clojurescript (84)
- # cursive (3)
- # data-science (4)
- # datomic (82)
- # emacs (2)
- # events (4)
- # figwheel (1)
- # fulcro (6)
- # graphql (2)
- # hoplon (46)
- # instaparse (24)
- # jobs (9)
- # lein-figwheel (2)
- # luminus (18)
- # lumo (3)
- # mount (1)
- # off-topic (14)
- # onyx (17)
- # parinfer (22)
- # planck (1)
- # protorepl (1)
- # re-frame (50)
- # reagent (7)
- # ring-swagger (6)
- # rum (4)
- # shadow-cljs (94)
- # spacemacs (9)
- # specter (7)
- # tools-deps (2)
- # uncomplicate (4)
- # vim (33)
Is it possible for me to have a spec: s/cat
regex where latter parts of the regex use predicates that depend on the conform of prior parts?
I guess the alternative would be to have a second spec to run after the first one, so it can depend on the output of the first one.
If you had some spec'd code where correctness was far more important than performance, a) would it make sense to turn on instrumentation of every fn at production runtime and b) if so, how would one go about doing that?
@cap10morgan instrument
accepts a sequence of symbols to instrument as I recall. You'd probably want to just instrument
the functions in specific namespaces (your own) to avoid turning on instrumentation for all libraries functions in your app.
(you can "instrument everything" by calling instrument
with no arguments but you wouldn't know what functions got instrumented so you'd have no idea about performance impact)
you would know as it returns a collection of all symbols instrumented
I meant, ahead of time.
you do have to ensure the specs have been loaded (by requiring them) before calling instrument
But, yeah, you could potentially get a very long list of instrumented functions that you weren't expecting 🙂