Hacker News new | ask | show | jobs
by erez-rabih 2072 days ago
I’ve been professionally working with clojure for the last few years and never understood the comment block use cases.

Of course I might be missing some obvious advantages but it seems to me that it is better to invest the time in turning these comments into tests rather than having them thrown randomly in source files.

I mean eventually all these comment blocks are just test cases aren’t they? We use them to evaluate expressions and compare the output value to our expectations. When I want to explore I build a small test case and use the fast feedback loop to have it as interactive as possible. Would be happy to hear any thoughts on this.