Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 3
    I don't see how these two terms are related in any way, shape, or form. Can you clarify how you believe these terms are related? Commented Jun 26, 2023 at 18:59
  • 1
    What Greg says. In particular, your second definition ends with "when it is modified"; that is something which does not happen to immutable objects. Commented Jun 26, 2023 at 19:22
  • 3
    Note that the tag persistence you used on your question relates to a completely different, distinct concept than the one you are talking about. This seems to have caused some confusion. I have taken the liberty of removing the tag from your question and creating a new one persistent-data-structures Commented Jun 27, 2023 at 4:30
  • 1
    @GregBurghardt Persistent means "remains across different invocations of a program", while immutable means "remains unchanged during the same invocation of a program". Still different, but it's not unreasonable to consider these two related terms. Commented Jun 27, 2023 at 6:18
  • 2
    I can see the OP's (and my own) confusion here. "Persistence" and "Persistent Data Structures" are similar terms, but have different meanings. I can see how they are related, and I can see how someone might think they aren't related. Good question. Commented Jun 27, 2023 at 15:33