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

Need distinct error type for errors caused by wait #689

Open
jclark opened this issue Jan 8, 2021 · 1 comment
Open

Need distinct error type for errors caused by wait #689

jclark opened this issue Jan 8, 2021 · 1 comment
Assignees
Labels
enhancement Enhancement to language design
Milestone

Comments

@jclark
Copy link
Collaborator

jclark commented Jan 8, 2021

Using wait on a value of type future<T> can result in an error; this happens if you wait for the same future more than once.

AFAIR, this and commit are the only cases where the language generates an error (as opposed to a panic). For commit we already define a distinct error type.

This relates to #134.

@jclark jclark added the enhancement Enhancement to language design label Jan 8, 2021
@jclark jclark added this to the Swan Lake cleanup milestone Jan 8, 2021
@jclark jclark self-assigned this Jan 8, 2021
@jclark
Copy link
Collaborator Author

jclark commented Jan 11, 2021

Another case where the language generates an error is with json and lax typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

1 participant