These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
There is a known warning not to use begin-rescue for program flow control
But you can use it for error handling… which is different.
Though dry-monads even better?
Monads can be used as an alternative to error handling with with begin… rescue. And yes, generally speaking, I’d say they’re “better,” especially for high-level code, but I wouldn’t take that as an absolute rule.
validaterules that won't fire if previous for the same attr is not valid?