dry-rb / dry-logic

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

Yield block on failure #50

Closed flash-gordon closed 5 years ago

flash-gordon commented 5 years ago

It makes little sense to do this as is, using [] works better if you want to reduce the whole tree to a boolean. The block could accept rule id and input, that would be an improvement. However, I don't think we need it right now, maybe later.