• Noja@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    2
    ·
    16 hours ago

    Memory leaks are logic errors, Rust can’t really prevent you from leaking memory.

    • socsa@piefed.social
      link
      fedilink
      English
      arrow-up
      4
      ·
      15 hours ago

      Some memory leaks are logic errors, and this is honestly the irony of modern dynamic languages. I have actually gotten into the argument in interviews before - it is arguably safer (and better) to work from maximal static memory allocations with memory safe data objects than it is to implement dynamic memory algorithms just because they are fun coding problems.