r/Clojure • u/imihnevich • Jul 24 '25
Good quality libraries
Hi all! I am learning Clojure as a part of experiment on myself. I really love FP and my favourite FP language is Haskell. Learning it made me really appreciate types. The reason I decided to learn Clojure is TDD; for last year or two I really came to love TDD, and I realised the more I use it, the less I rely on types, so I decided to learn some dynamic language and see if I really need types when I have TDD. What I found is that I am fine as long as I work with my own code that I know, but when I have to use external library I lack something else, it's not the safety, it's explorability. Even with little docs one can learn a lot about the library in Haskell. How do you guys work around that in Clojure? Is there some list of the industry standards or at least of the libraries with good uniformal documentation? Thanks
View all comments
Show parent comment
1
u/v4ss42 Jul 27 '25
Ok so while I came up with a short, quick & dirty
dep-docsfunction, it has the side effects of both downloading the dep (not terrible) and adding it to the running classpath (which isn't great imvho, and won't work if different versions are introspected - it usesadd-lib, which can't "replace" an existing dep in the classpath).I assume there are clever ways to get the docstrings of a namespace and its public vars without adding the code to the classpath, but I also suspect that'll be a lot more complex, especially if macros are involved.