Clojure docstring for libraries/namespaces
-
22-06-2021 - |
Вопрос
How to add docstrings and/or comments to Clojure libaries/namespaces as a whole, i.e. not just to specific functions within the namespace?
I've noticed that the clojure source uses (comment ...)
in some places to do this (example), is that recommended?
Решение
Другие советы
You can add a docstring to any namespace in the ns
form.
(ns my.name.space
"Very cool namespace doing this and that."
(:require other.cool.stuff))
Не связан с StackOverflow