-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
148: Modal harmony r=nikomatsakis a=nikomatsakis This branch implements #143. It's not quite where I want it to be yet, but close enough I figured I'd open it up so that there's a preview + playground etc. Here is a list of things I have done and have yet to do (will update as I go, this is off the top of my head): * [x] Add specifiers `my`, `our`, etc * [x] Change leasing an `our` value to yield another `our` value, instead of `our leased` (preserves all invariants, more convenient overall) * [x] Check that values assigned to a `my` etc location meet the requirements * [x] Change the default specifier from `any` to `our leased` * [x] Ensure that when unique things are stored in shared locations, they are shared ([example where it goes wrong today](https://deploy-preview-148--dada-lang.netlify.app/playground/?code=class+Point%28x%2C+y%29%0A%0Aasync+fn+main%28%29+%7B%0A++++our+s+%3D+%22foo%22%0A++++our+t+%3D+foo%28s%29%0A++++p+%3D+Point%28s%2C+t%29%0A++++q+%3D+p%0A++++print%28p%29.await%0A%7D%0A%0Afn+foo%28our+s%29+%7B%0A++++s%0A%7D%0A)) Co-authored-by: Niko Matsakis <[email protected]>
- Loading branch information
Showing
304 changed files
with
9,190 additions
and
1,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.