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.
Awesome, thank you for the list
looks like the most legitimate cases are:
({foo 1
bar 2
...} x)
(map (fn []
...) xs)