-
Notifications
You must be signed in to change notification settings - Fork 462
Tolerate access to RaiseAccumulate.Error values in accumulating
#3813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Kover Report
|
| val x = accumulating<Int> { raise("hello") } | ||
| val y = accumulating<Int> { raise("bye") } | ||
| x.value + y.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these tests changed? We need to ensure that using by works as expected here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by can't be supported in this PR, annoyingly. This is the biggest reason why I've kept it a draft
The goal is to allow usage patterns where
accumulatingvalues can depend on otheraccumulatingvalues.I'm not super happy with this yet. It doesn't play well with property delegation (because you can't have context parameters on
getValueyet, and even then, the design of that feature is unclear).