beginners

Anthony Franco 2026-06-04T18:08:58.720019Z

What enters into the decision between using str concatenation versus something like format? Are there performance trade-offs?

Alex Miller (Clojure team) 2026-06-04T18:12:03.613019Z

certainly if the set of strs is variable, then you should use str

👍 2
Alex Miller (Clojure team) 2026-06-04T18:12:57.351399Z

I don't actually know off-hand what the perf difference is, so you should test it!

👀 1
kdj00 2026-06-04T18:43:12.170809Z

I stumbled across this earlier, which seems relevant: https://github.com/clj-kondo/clj-kondo/pull/2853#discussion_r3331177851

🎉 2