Fork me on GitHub

I wonder if it would be possible to have a linter for this guideline: > Only use pure functions with the lazy sequence operations like map, filter, take-while, etc. When you need side effects, use one of these alternatives:


I think we could, certainly if you use a side-effecting clojure var directly in map, etc. With composite functions, we need to introduce some side-effect tracking stuff


It seems to me like it would be helpful. Reasoning about how lazy sequence operations get evaluated can get confusing at times, but with this guideline it's pretty clear how to avoid most of the trouble.


I created in case there is more interest in this idea.