meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
timothypratley 2020-05-08T22:47:43.228800Z

SoooooOooooo multimethods and protocols suck for interactive development and I think there is a better “meander” alternative which is… just write patterns for the polymorphic inputs! However I don’t want to be limited to making the patterns siblings…. what I’d like to do (I think) is def a bunch of strategies and then say try all these strategies and see if one passes.

timothypratley 2020-05-08T22:50:42.228900Z

Like:

(ns a.a)
(def a (s/rewrite [pattern] [output]))

(ns b.b)
(def b (s/rewrite [patternb] [outputb])

(ns x.core)
(def POLYMORPHIC (s/try a/a b/b))
But I don’t think s/try exists

timothypratley 2020-05-08T22:51:12.229100Z

(Seems like something I should be able to do though)