Skip to content
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

Express error of callbacks in functional helpers #291

Open
giann opened this issue May 21, 2024 · 0 comments
Open

Express error of callbacks in functional helpers #291

giann opened this issue May 21, 2024 · 0 comments
Labels
language Issue related to the language
Milestone

Comments

@giann
Copy link
Collaborator

giann commented May 21, 2024

Right now user is forced to handle error in callback because we can't forward the error to the helper. We would need something like:

list.reduce::<int, SomeError>(
    fun (int i, int val, int acc) > int !> SomeError {
        | ...
    }
);
@giann giann added the language Issue related to the language label May 21, 2024
@giann giann added this to the 0.5.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Issue related to the language
Projects
None yet
Development

No branches or pull requests

1 participant