fernandod/clojure-maven — comment on commit a9f0ed6fbaa57400791946dccbc22c172e8b96e6
File: mojo-annotations/src/main/clojure/clojure/maven/defmojo.clj line 43
By hugoduncan:

I don't think you can add arbitrary methods to a deftype - they have to be part of a protocol or interface. I wonder if there are optional interfaces for mojos,, and whether we should leave open the possibility for a user to implement additional interfaces in the defmojo? (I would tend to think not, but I am by no means an expert on mojos).

Having the log globally available is a convenience, in my opinion, since passing the log as a argument is just incidental complexity, while passing parameters is more in line with functional style code.