This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-07
Channels
- # bangalore-clj (3)
- # beginners (103)
- # boot (13)
- # cider (16)
- # cljs-dev (192)
- # cljsrn (44)
- # clojure (147)
- # clojure-dev (1)
- # clojure-italy (79)
- # clojure-norway (1)
- # clojure-russia (9)
- # clojure-spec (4)
- # clojure-uk (34)
- # clojurescript (65)
- # core-async (1)
- # core-logic (2)
- # core-typed (5)
- # cursive (1)
- # datascript (9)
- # datomic (26)
- # emacs (8)
- # garden (1)
- # hoplon (11)
- # humor (1)
- # jobs (1)
- # jobs-discuss (8)
- # jobs-rus (3)
- # leiningen (1)
- # luminus (1)
- # lumo (1)
- # mount (6)
- # off-topic (16)
- # om (10)
- # om-next (1)
- # onyx (10)
- # parinfer (10)
- # pedestal (25)
- # re-frame (27)
- # reagent (3)
- # rum (47)
- # uncomplicate (1)
- # unrepl (34)
- # untangled (120)
- # vim (58)
I’ve seen it for destructuring in clojure
actually, i’m having trouble coming up with a real example, lemme run a grep search on clojure core repos
I guess my actual question was closer to "would it feel limiting if the first example was disallowed?" ...which may turn out to be "yes", I'm not sure
i’m not sure, some real world usages might help answer
i’m not sure if grep is liking my character class regex syntax
rg '^\s*[^(){}\[\]]+[})\]]+\s*[\w\d:_"({\[]' -tclojure
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/analyzer.cljc#L1887
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/analyzer.cljc#L2505
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/core.cljc#L3127
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/core.cljc#L3133
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/repl.cljc#L857
• https://github.com/clojure/clojurescript/blob/11700b/src/test/self/self_parity/test.cljs#L181
• https://github.com/clojure/clojurescript/blob/11700b/src/main/cljs/clojure/zip.cljs#L109
• https://github.com/clojure/clojurescript/blob/11700b/src/main/clojure/cljs/repl/rhino.clj#L164One of our projects was causing a segfault in ag it pt. Switched to ripgrep, been VERY happy since.
looks like the most legitimate cases are:
({foo 1
bar 2
...} x)
(map (fn []
...) xs)