• HaraldvonBlauzahn@feddit.org
    link
    fedilink
    arrow-up
    11
    ·
    15 hours ago

    I think at the lowest level, it is very similar.

    But with a bit more abstraction, Rust is somewhat less verbose, especially when the same efficiency is required. Thinking im iterators / loops or generics, or enumerations / sum types. Also, the module system, build system, integrated unit tests, and compiler messages are huge gains for productivity.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      9 hours ago

      Cool, thank you. Might tackle Rust next year then.

      This year I’m getting into OCaml. 😊

      • esa@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        8 hours ago

        OCaml should transfer pretty well to Rust. Rust can feel like an ML dressed up in C’s braces.

        Similarly, if you can write in Haskell without having to reach for IO, then you can probably satisfy Rust’s borrow checker with no more effort.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          2 hours ago

          Thanks for that insight. I did some small delving into Haskell years ago, but I found the tooling to be so awkward, and “monads” so confusing and poorly explained everywhere, that I eventually gave up trying to learn more.

          But OCaml seems pretty nice. Familiar, but with hopefully better tooling. 🤞