I guess meander can be used on conformed output from clojure.spec right?
It occurred to me that this might be useful for grasp (https://github.com/borkdude/grasp)
@borkdude That was my first thought when I saw grasp. Was hoping to play with it soon. Glad to see you beat me to it.
@jimmy now that you're here anyway: is it possible to define a pattern outside of a call to m/find
?
like:
(def pattern ...)
(m/find thing pattern out)
?You can use defsyntax. But other than that not currently.
@jimmy One idea might be to support unquote. I've been doing this in the babashka.process $
macro:
($ ls -la ~file)
(m/find thing ~pattern out)
We have unquote for slicing in values. But not patterns. (If I recall correctly)
or maybe expose functional equivalents to the macros?
(m/findf thing '{:my ?pattern} ...)
Yeah, we do have plans around doing exactly that.
great!
@borkdude There is this PR: https://github.com/noprompt/meander/pull/128
I think it’s probably safe to merge at this point. I left it open for a while to give folks (primarily @jimmy and others who know the most about the project) a chance to chime in.
zeta
which is in the works and hopefully available early next year, is being redesigned to place the interpreter API at the bottom with the compilation on top.
Normally, that would have been the road I would have taken first, however, from a strategic point of view as a maintainer, and not knowing exactly what I was building, starting from the macro gave me the most leverage and control starting out.
@borkdude I’m keen on having that interpreter in your hands if you’ll make use of it.
All that I ask is that you complain here or on GH if you have issues with it.
🙂
Bugs and complaints are prized items in this channel.
Eh, I’ll try and see if I can push that out today. I’m working on some #asami stuff at the moment and once I wrap up what I’m doing I’ll move on that PR.