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

Improvements to try #518

Open
kengorab opened this issue Dec 12, 2024 · 0 comments
Open

Improvements to try #518

kengorab opened this issue Dec 12, 2024 · 0 comments
Labels

Comments

@kengorab
Copy link
Owner

This may be worthwhile to split into separate issues, but I can think of 2 immediate improvements to try expressions:

  1. A try expression/statement should be available at the top-level. If it fails, then it should just exit the program
  2. A try expression/statement should be able to be used within a function that does not return a Result type if there's an else-clause attached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant