• Lunya \ she/it@iusearchlinux.fyi
    link
    fedilink
    arrow-up
    63
    arrow-down
    2
    ·
    4 months ago

    Meanwhile Rust: you might get an error at line 45 word 3 because it assumes variable foo is an int32 but it could be (whatever else idk), let’s not compile this before you correct this by changing line 43 in this specific way. Here’s the before and after code snippets so you can just copy-paste the fix.

    • TxzK
      link
      fedilink
      arrow-up
      38
      arrow-down
      1
      ·
      4 months ago

      Man I fucking love the Rust compiler. Easily the most understandable and useful error messages I’ve ever seen.

    • anton@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      4 months ago

      In my IDE there us even a button for accepting the compilers recommend fix. This is only possible because the error messages and recommendations are that good.