lambdaisland

borkdude 2020-02-11T18:06:44.001200Z

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 ]

plexus 2020-02-11T18:15:52.003Z

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

plexus 2020-02-11T18:16:14.003500Z

Thanks for reporting! I'll fix it soon.

borkdude 2020-02-11T18:17:46.004200Z

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

borkdude 2020-02-11T18:43:50.005300Z

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