How do you name macros?

Just started playing with macros, is there any existing naming styles for macros?

Not really in general, there might be for specific types of macros, for instance defsomething for macros that create a var, or with-... for a macro that takes a resource and a block of code and make sure the resource gets closed.

(with-open [r (clojure.java.io/input-stream "myfile.txt")] 
  ,,,)

(with-browser [b (make-browser)]
  ,,,)

That last example is from sparkledriver

2 Likes

Complete OT, but thank you for sparkledriver link. I was just looking for some integration tool, and this seems like it.

Yeah Sparkledriver is awesome. As far as I know Jack never officially announced it, but I think it will soon replace clj-wedriver as people’s go-to integration testing tool.