• @sugar_in_your_tea
    link
    42 days 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.

    • @[email protected]
      link
      fedilink
      English
      5
      edit-2
      2 days ago

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

      • @[email protected]
        link
        fedilink
        419 hours ago

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