this post was submitted on 16 Sep 2024
52 points (98.1% liked)

Rust

6465 readers
17 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 5 months ago (1 children)

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] 7 points 5 months ago* (last edited 5 months ago) (1 children)

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

[–] [email protected] 6 points 5 months ago

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