-
Notifications
You must be signed in to change notification settings - Fork 141
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
Introduce built-in mutability entitlements #2586
Introduce built-in mutability entitlements #2586
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Great idea to extend the Go code generator to support entitlement declarations, that will come in handy for the Account
type refactor 👌
We can probably merge this once the FLIP is approved, even if the names are still going to potentially get adjusted later |
9a64a7f
to
7cfcc05
Compare
…onflow/cadence into supun/builtin-entitlements
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/mutability-restrictions commit 2a08798 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## feature/mutability-restrictions #2586 +/- ##
===================================================================
- Coverage 78.96% 78.90% -0.06%
===================================================================
Files 340 341 +1
Lines 81724 81842 +118
===================================================================
+ Hits 64534 64581 +47
- Misses 14834 14904 +70
- Partials 2356 2357 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Work towards #2638
Work towards onflow/flips#86
Description
Introduces three built-in mutability-related entitlements:
Insertable
Removable
Mutable
Note: This PR only introduces these entitlements. Array/dictionary functions still don't use them. That will be added in a follow-up PR.
master
branchFiles changed
in the Github PR explorer