Fork me on GitHub
#meander
<
2020-11-03
>
borkdude12:11:46

I guess meander can be used on conformed output from clojure.spec right?

borkdude12:11:04

It occurred to me that this might be useful for grasp (https://github.com/borkdude/grasp)

jimmy14:11:16

@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.

borkdude14:11:29

@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)
?

jimmy14:11:09

You can use defsyntax. But other than that not currently.

borkdude14:11:25

@jimmy One idea might be to support unquote. I've been doing this in the babashka.process $ macro:

($ ls -la ~file)

❤️ 3
borkdude14:11:40

(m/find thing ~pattern out)

jimmy14:11:09

We have unquote for slicing in values. But not patterns. (If I recall correctly)

borkdude15:11:56

or maybe expose functional equivalents to the macros?

(m/findf thing '{:my ?pattern} ...)

jimmy15:11:59

Yeah, we do have plans around doing exactly that.

noprompt18:11:14

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.

noprompt18:11:43

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.

noprompt18:11:09

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.

noprompt18:11:27

@borkdude I’m keen on having that interpreter in your hands if you’ll make use of it.

noprompt18:11:00

All that I ask is that you complain here or on GH if you have issues with it.

noprompt18:11:34

Bugs and complaints are prized items in this channel.

noprompt18:11:17

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.