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

Expose self to recover expressions #571

Closed
yorickpeterse opened this issue Jun 6, 2023 · 0 comments
Closed

Expose self to recover expressions #571

yorickpeterse opened this issue Jun 6, 2023 · 0 comments
Assignees
Labels
accepting contributions Issues that are suitable to be worked on by anybody, not just maintainers compiler Changes related to the compiler feature New things to add to Inko, such as a new standard library module
Milestone

Comments

@yorickpeterse
Copy link
Collaborator

Description

Just like local variables, self should be available in recover expressions as uni ref T or uni mut T, depending on the mutability of the surrounding method. This allows for expressions such as recover match self { ... }, which currently isn't allowed.

Related work

No response

@yorickpeterse yorickpeterse added accepting contributions Issues that are suitable to be worked on by anybody, not just maintainers feature New things to add to Inko, such as a new standard library module compiler Changes related to the compiler labels Jun 6, 2023
@yorickpeterse yorickpeterse added this to the 0.13.0 milestone Jun 6, 2023
@yorickpeterse yorickpeterse self-assigned this Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepting contributions Issues that are suitable to be worked on by anybody, not just maintainers compiler Changes related to the compiler feature New things to add to Inko, such as a new standard library module
Projects
None yet
Development

No branches or pull requests

1 participant