我想将可选的文档字符串添加到我的def*
宏。例如:将可选的文档字符串添加到def *宏
(defmacro defhtml
"Macro to avoid backtick unquote[splicing] in html vectors.
TODO: Add optional docstring."
[name args & body]
`(defn ~name ~args (html [email protected])))
;; Working defhtml
(defhtml include-css [href]
[:link {:href href :rel "stylesheet"}])
我想:
(defhtml include-css
"My optional docstring here."
[:link {:href href :rel "stylesheet"}])
我想应该有一些常见的成语这一点。
我想你想添加可选的文档字符串*您高清*宏*的调用。 – Thumbnail