• AeonFelis@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    14 hours ago

    Also the source of most of the things Rust gets criticized for. Ugly syntax? That’s mainly because of the lifetimes, which server as instructions for the Borrow Checker. Too many types of strings? So that the Borrow Checker can determine how the memory slice the text is stored in is managed. And of course - the complicated error messages are where the compiler is trying to explain to you what the Borrow Checker is thinking.