by dwohnitmok · 6y ago · 0 comments
I would personally sum up Clojure's main impact on my own programming in two ways.
1. 90% of the time you just need immutable maps, sets, vectors, and primitives. Fancy custom classes and custom higher order functions usually aren't needed.
2. Wishing more things had on-the-fly editing of a running program.
The other reason is that Clojure code is usually well-factored, and most clojurians have listened to Rich and simplified their programs. Not many problems require STM transactions across multiple refs. If you don't have multiple refs changing transactionally, you can use atoms instead for a performance benefit.