This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-09
Channels
- # announcements (3)
- # aws (2)
- # aws-lambda (15)
- # beginners (38)
- # calva (15)
- # cider (17)
- # cljs-dev (2)
- # clojure (44)
- # clojure-dev (17)
- # clojure-spec (4)
- # clojure-sweden (1)
- # clojure-uk (8)
- # clojurescript (122)
- # cursive (19)
- # fulcro (25)
- # jobs-discuss (12)
- # nyc (3)
- # off-topic (20)
- # reagent (1)
- # rewrite-clj (4)
- # shadow-cljs (11)
- # spacemacs (65)
- # tools-deps (1)
- # vim (3)
(went with loop+case and weaker jit errors instead of spec for such tree this time, though)
further destructuring of a form conformed to regex-spec and to or-spec is different: map vs "twople". In case of a tree, you'll walk 1 node at a time, which makes
(let [[tag form] conformed]
(case tag ...))
preferable to
(let [{:keys [tag1 tag2 tag3 ...]} conformed]
(cond ;; I guess?
tag1 ...
tag2 ...))