This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-08
Channels
- # announcements (5)
- # babashka (46)
- # beginners (206)
- # boot (1)
- # bristol-clojurians (1)
- # calva (9)
- # chlorine-clover (27)
- # cider (1)
- # clara (10)
- # clj-kondo (105)
- # cljsrn (2)
- # clojars (1)
- # clojure (104)
- # clojure-europe (6)
- # clojure-nl (2)
- # clojure-uk (18)
- # clojurescript (44)
- # conjure (10)
- # core-async (34)
- # cursive (28)
- # data-science (6)
- # datomic (14)
- # emacs (44)
- # events (1)
- # figwheel-main (1)
- # fulcro (13)
- # graphql (9)
- # helix (12)
- # kaocha (2)
- # meander (4)
- # off-topic (2)
- # pathom (1)
- # quil (1)
- # re-frame (21)
- # shadow-cljs (49)
- # spacemacs (6)
- # xtdb (8)
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.
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(Seems like something I should be able to do though)