Closed fxamacker closed 1 year ago
For readonly iterators, the caller is responsible for preventing changes to child containers during iteration because mutations of child containers are not guaranteed to persist.
Is there are non-deterministic case there?
Attention: 37 lines
in your changes are missing coverage. Please review.
Comparison is base (
8d02bbc
) 62.59% compared to head (f671189
) 62.62%. Report is 1 commits behind head on fxamacker/inline-array-and-map.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
For readonly iterators, the caller is responsible for preventing changes to child containers during iteration because mutations of child containers are not guaranteed to persist.
Is there are non-deterministic case there?
Hi @bluesign, the readonly iterators will only be used internally in Cadence to reduce overhead. So "not guaranteed to persist" won't be a problem in this case.
This PR:
Changes:
For readonly iterators, the caller is responsible for preventing changes to child containers during iteration because mutations of child containers are not guaranteed to persist.
For non-readonly iterators, two additional parameters are needed to update child container in parent map when child container is modified.
main
branchFiles changed
in the Github PR explorer