Why build a Clojure string using alphabetic characters?

I was reading some code just now, and I came across this line :

(str cache \, \space lru \, \space tick \, \space limit)

This is strange to me. Serial literals are used, not a string containing these characters. I would expect something more:

(str cache ", " lru ", " tick ", " limit)

But it's in the main library , written by some Clojure veteran veterans, which makes me think that there may be a reason. What reason? Performance? Or what?

+4
source share
1 answer

. , , , . (join ", " [cache lru tick limit]), , , . . , , , , , . , .

+6

Source: https://habr.com/ru/post/1548216/


All Articles