Open
Description
Looking here it is suggested that
;; good
(defn- private-fun [] ...)
(defn ^:private private-fun [] ...) ; overly verbose
However reading up on this Google group discussion it seems that using defn-
is a bit contradictory since there are other def
that do not have a complimentary def-
option. Quoting Vincent
It's better to use ^:private metadata on the symbol naming the var, since there is also defmacro, defmulti, etc, which not have hyphened versions too.
Should this continue to remain in the styleguide?
(I can submit a PR to make the change, however I felt that perhaps having a discussion prior to that would be appropriate)
Metadata
Metadata
Assignees
Labels
No labels