Skip to content

Investigation: can we mutate previous values in memoized functions? #790

@rbalicki2

Description

@rbalicki2
  • We keep track of references and all that, can we handle mutation?
  • e.g. can a memoized function accept an Option<PreviousValue>? (Or, more likely, it would receive another struct, so that we can track calls to get_mut etc.)
  • Perhaps the tracked/untracked distinction is relevant here. In particular, if I have a HashMap, and only modify one item in the map, I don't want everything else to re-execute!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions