You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sv uses Validation to accumulate multiple errors in Applicative operations.
For example, consider a <*> b <*> c. If more than one of these fails, the errors from all of them are collected.
Now consider the Alt operation x <!> y <!> z. In this case, if more than one fails, only the errors from the last (z) are collected.
It would be better if all the errors were kept. But I speculate that having all the <*> and <!> errors show up at the same level could quite confusing and unclear. I wonder if we could build a tree structure full of errors, or otherwise tag that a group of errors came from a chain of <!>
The text was updated successfully, but these errors were encountered:
sv uses Validation to accumulate multiple errors in Applicative operations.
For example, consider
a <*> b <*> c
. If more than one of these fails, the errors from all of them are collected.Now consider the Alt operation
x <!> y <!> z
. In this case, if more than one fails, only the errors from the last (z
) are collected.It would be better if all the errors were kept. But I speculate that having all the
<*>
and<!>
errors show up at the same level could quite confusing and unclear. I wonder if we could build a tree structure full of errors, or otherwise tag that a group of errors came from a chain of<!>
The text was updated successfully, but these errors were encountered: