4 ms·
>And documentation in clojure code in general is very poor. People think their code is self documenting. It is not. Clojure functions and macros have docstring
by Morgawr 12y ago
>And documentation in clojure code in general is very poor. People think their code is self documenting. It is not.
Clojure functions and macros have docstrings you can query with the "doc" function. Honestly I've started keeping a repl open all time like I used to do in C with a terminal + man, so I can use (doc whatever) or (source whatever) to see the documentation + implementation details of most of the functions I use.
- DigitalJack 12y agoI do appreciate the doc strings. If only more people would write them. Weavejester's code I think is a fine example of doing this well. https://github.com/weavejester/compojure/blob/master/src/compojure/handler.clj https://github.com/weavejester/compojure/blob/master/src/com...