• Lunya \ she/it
    link
    fedilink
    6110 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
      3610 months ago

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

      • @[email protected]
        link
        fedilink
        English
        1010 months ago

        Have you seen Elm’s error messages? They were what inspired Rust to have its error messages.

        • asudox
          link
          310 months ago

          I like how Elm error messages are like the compiler talking to you as a person.

    • @[email protected]
      link
      fedilink
      1810 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.

      • @agent_flounder
        link
        English
        1110 months ago

        Hm. Rust sounds better and better every time I hear something new about it.