• TechnoCat@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    4 days ago

    Without ref counting it is hard to know when to free or safely change a value with multiple consumers

    • INeedMana@piefed.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      I mean, keep the ref-counting. Just from the syntax perspective. Aligning with the example in the post: & before Arc would increment reference count, before a Mutex would reference the same object as it does now