-
Notifications
You must be signed in to change notification settings - Fork 138
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
add a clear
method to delete saved data in storage
#1253
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1253 +/- ##
==========================================
+ Coverage 77.60% 77.61% +0.01%
==========================================
Files 274 274
Lines 35233 35261 +28
==========================================
+ Hits 27341 27369 +28
Misses 6805 6805
Partials 1087 1087
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 81c63bf Results
|
@dete Any thoughts? |
@dsainati1 Should we maybe consider this change for Stable Cadence? |
Seems to me like based on the discussion on #1252, the sentiment is against these two methods, the argument being that any operation that destroys a resource should be explicit; having methods that can implicitly destroy resources is not a desirable feature for the language. However I would be willing to put this to a FLIP if it's something we want to push for anyways. |
@dsainati1 Sounds good! Added it to the agenda of the next LDM, maybe we can decide there together if we want to close this and the other related PR, or open a FLIP for them |
Seems like this feature is not wanted; closing. |
Closes #1245
Adds a new method to the
AuthAccount
object:This function deletes whatever is present at the specified path, destroying any resources, and returns whether anything was present originally.
master
branchFiles changed
in the Github PR explorer