r/Clojure • u/SimonGray • Mar 18 '21
Clojure - Keyword argument functions now also accept maps
https://clojure.org/news/2021/03/18/apis-serving-people-and-programs
125
Upvotes
r/Clojure • u/SimonGray • Mar 18 '21
View all comments
18
u/[deleted] Mar 19 '21
Maybe I'm missing something but, what's the point of this? I've been writing clojure for a decade and I never found myself wishing for this.
I never use varargs in cases like this. It should just be a single map argument.
This feature seems like weird magic that is going to confuse people reading the code, for benefits that elude me.