• flamingo_pinyata@sopuli.xyz
    link
    fedilink
    arrow-up
    51
    ·
    1 day ago

    The whole point of it is to prevent you from doing stupid shit. Yes it’s annoying. But you can’t handle memory management on your own, no matter how much you think you can.

    It’s either that or garbage collection. Choose which one you hate less.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    30
    ·
    1 day ago

    I don’t understand why people hate the borrow checker. Just make sure that you own the value until everything is done using it, or put it into a smart pointer