Reputation: 106401
I'm looking for a smart way to create composable validation and transformation pipelines in Clojure. The aim is to be able to do simple translation and validation of messages using composable steps.
Main requirements:
I guess I can write all this, but don't particularly feel like reinventing the wheel today :-)
Dopes anyone know of a tool that can do this, or have a good idea regarding how to construct one in a clever and general way?
Upvotes: 6
Views: 397
Reputation: 1240
You might find Promenade (see documentation), a library I have been working on for elegant error handling and control flow, useful for some of the things described in the question.
Upvotes: 0
Reputation: 70239
You might look at Zach Tellman's Lamina library. You can create pipelines of functions with error handlers as other useful functionality.
Upvotes: 1