This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-03
Channels
- # announcements (6)
- # babashka (14)
- # beginners (17)
- # biff (3)
- # calva (19)
- # circleci (3)
- # clj-on-windows (1)
- # cljdoc (21)
- # cljs-dev (6)
- # clojure (119)
- # clojure-australia (2)
- # clojure-europe (28)
- # clojure-france (3)
- # clojure-norway (12)
- # clojure-survey (2)
- # clojure-uk (7)
- # clojurescript (25)
- # core-typed (1)
- # cursive (11)
- # datomic (53)
- # emacs (14)
- # events (1)
- # gratitude (1)
- # holy-lambda (21)
- # integrant (2)
- # jobs (1)
- # jobs-discuss (3)
- # juxt (3)
- # kaocha (1)
- # lsp (17)
- # nbb (14)
- # off-topic (25)
- # pathom (11)
- # re-frame (24)
- # releases (1)
- # remote-jobs (2)
- # rewrite-clj (10)
- # shadow-cljs (11)
- # sql (3)
- # tools-build (6)
- # tools-deps (83)
- # vim (26)
- # xtdb (10)
Hey! Just to be sure I am not overcomplicating. I want to remove redundant nesting (+ (+ 1 2) 3)
—> (+ 1 2 3)
.
And here is the code I came up with. Is it ok? I am asking because compared to simbols manipulations (another screean I've attached) it's too big and dificult to read.
I think you should first ask yourself if the problem is worth solving. It is convenient but I think most users can handle this manually when they see it?
I think that this kind of problems are routine that should be automated. I only didn't want to translate the code, that shouldn't be translated, like classes declaration, because it is not an idiomatic clojure and it's far from trivial to rewrite classes into proper clojure code.