• diffusive@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Call me a weirdo but the more errors a compilers give me the happier (albeit a bit frustrated) I am. That stuff generally surfaces in a way or another… and I prefer at compile time 🙂

    That said I haven’t spent quality time with Rust yet… so not sure if there are a lot of nitpicks (ala go) or these are valgrind-level of “holy s*** I am so grateful to this tool” 😃

    • itslilith@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The borrow checker makes things a bit more complicated to get running, definitely takes some getting used to when you come from a non-memory safe language. But the compiler is really helpful throughout almost all mistakes, often directly providing an explanation and a suggested fix. One of my favorites programming experiences so far

  • kubica@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    The weird part of rust is replacing straight forward semicolons from other languages with the more verbose .unwrap();.

    Just kidding, don’t lecture me about it.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The amount of people on the internet seriously complaining that both Rust error handling sucks and that .unwrap(); is too verbose is just staggering.

      • magic_lobster_party@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I think the problem is that many introductory examples use unwrap, so many beginner programmers don’t get exposed to alternatives like unwrap_or and the likes.