4 ms·
Using transducers is really easy and intuitive (with "comp" letting you compose a pipeline of transformations in a readable way). Writing custom transducers, e
by jwr 3y ago
Using transducers is really easy and intuitive (with "comp" letting you compose a pipeline of transformations in a readable way).
Writing custom transducers, especially stateful transducers is really difficult. But that's not something you'll do often. My 10kLOC complex app has three stateful transducers that I wrote.
I think transducers are an under-appreciated aspect of Clojure. They are an extremely valuable and flexible tool, and have allowed me to write reusable and composable code and tackle significant complexity, all with great performance.
- kimi 3y agoYes I agree with you that transducers are OK. I think that they miss a bit in ergonomics, not power.