This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-09
Channels
- # announcements (16)
- # babashka (28)
- # beginners (27)
- # calva (39)
- # chlorine-clover (6)
- # cider (8)
- # clara (28)
- # cljs-dev (19)
- # cljsrn (22)
- # clojure (78)
- # clojure-australia (3)
- # clojure-europe (64)
- # clojure-nl (3)
- # clojure-norway (14)
- # clojure-spec (2)
- # clojure-uk (11)
- # clojurescript (11)
- # core-async (24)
- # datomic (3)
- # deps-new (5)
- # emacs (9)
- # fulcro (4)
- # gis (2)
- # graalvm (9)
- # honeysql (2)
- # hoplon (5)
- # instaparse (1)
- # introduce-yourself (5)
- # jobs (5)
- # luminus (4)
- # observability (7)
- # off-topic (6)
- # pathom (18)
- # pedestal (5)
- # polylith (4)
- # re-frame (2)
- # reagent (1)
- # reitit (1)
- # remote-jobs (7)
- # shadow-cljs (47)
- # specter (1)
- # sql (27)
- # testing (6)
- # tools-deps (4)
- # vim (3)
- # xtdb (8)
Is this a bug? I expect _
not to unify across destructuring-binds, but it looks like it does! Using latest on-prem version.
(d/q '[:find ?a ?b
:where
[(ground [0 2]) [_ ?a]]
[(ground [1 2]) [_ ?b]]
])
=> #{} ; WAT?
(d/q '[:find ?a ?b
:where
[(ground [1 2]) [_ ?a]]
[(ground [1 2]) [_ ?b]]
])
=> #{[2 2]}
(d/q '[:find ?a ?b
:where
[(ground [[1 2]]) [[_ ?a]]]
[(ground [[1 2]]) [[_ ?b]]]
])
=> #{[2 2]}
(d/q '[:find ?a ?b
:where
[(ground [[0 2]]) [[_ ?a]]]
[(ground [[1 2]]) [[_ ?b]]]
])
=> #{} ; WAT?
😮 3