Fork me on GitHub
#lambdaisland
<
2020-02-11
>
borkdude18:02:44

hey Arne. I was wondering about performance since regexes can usually be constructed at compile time (I think) vs runtime with regal. but when trying out regal I got this:

user=> (require '[lambdaisland.regal :as r])
Syntax error compiling at (lambdaisland/regal/generator.cljc:128:5).
Cyclic load dependency: [ /lambdaisland/regal ]->/lambdaisland/regal/generator->[ /lambdaisland/regal ]

plexus18:02:52

Oops that's from me poking at it with cider and clj-refactor adding requires. Generator is not supposed to depend on regal

plexus18:02:14

Thanks for reporting! I'll fix it soon.

borkdude18:02:46

Excluding test.check from the deps seems like a good idea too (seems unnecessary if you're not using the generators)

borkdude18:02:50

💡 implementing this as a data reader would probably help dealing with not re-evaluating the regex construction in the body of a function