• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    ·
    5 months ago

    Exactly. If there’s only one thing I could bring from Rust into another language, it would be Mutexes. It’s so nice to guarantee safe access to data.

    • nous
      link
      fedilink
      English
      arrow-up
      7
      ·
      edit-2
      5 months ago

      Rust mutexes would be nice. But I think for me that one thing for me would be its enums.

      • 5C5C5C
        link
        fedilink
        arrow-up
        6
        ·
        4 months ago

        But only if pattern matching were included, otherwise they would be as unpleasant as C++'s std::variant.