dry-rb / dry-logic

Predicate logic with rule composition
https://dry-rb.org/gems/dry-logic/
MIT License
179 stars 66 forks source link

Success feedback within AST #60

Open coatezy opened 5 years ago

coatezy commented 5 years ago

Hi,

@solnic and I recently discussed the possibility of adding success feedback to the AST after calling an operation.

I understand success is not currently returned as it will have an effect on the performance of the response. We use dry logic in a rules engine and we'd be willing to forfeit performance a little in exchange for the ability to provide richer feedback to our users.

We discussed the possibility of passing an optional value (possibly to #with along optional hints) to enable success feedback if needed.

If this is something that could be useful to others, I'd love to help implement this functionality.

solnic commented 5 years ago

Hey! 😄 Marking this is a feature request. Feel free to send a PR that adds it and let me know if you need help. A draft PR where we could discuss things will work too.