this post was submitted on 15 Jul 2026
124 points (97.0% liked)

Rust

8136 readers
94 users here now

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

Wormhole

!performance@programming.dev

Credits

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

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] _hovi_@lemmy.world 46 points 2 days ago (2 children)

Different strokes I guess. Personally, I do have a good time writing Rust and fun feels like the right word

[–] TheTechnician27@lemmy.world 22 points 2 days ago* (last edited 2 days ago)

Yeah, same. The fact I can chill the fuck out and basically not have to worry about an enormous class of serious, hard-to-spot bugs makes it a lot more fun for lower-level programming.

Like, yeah, I still need to worry about obstacles like other drivers, animals, etc., but it's a lot more fun driving on a road that isn't completely teeming with potholes and black ice.

[–] BartyDeCanter@piefed.social 10 points 2 days ago (1 children)

Yup. I come from a mostly embedded C or C++ background with a constant 10% Python for assorted scripts. Rust feels pretty great, basically all the things I like about all of those languages with fewer of the annoyances. And cargo and clippy are fantastic. My biggest annoyance is remembering which of the approximately 213 Result/Option chain handlers I should use in a given situation.

[–] magikmw@piefed.social 3 points 1 day ago (1 children)

Thanks for naming my biggest problem with writing rust code. Every crate has it's own particular Result chain, doesn't it. To the point we have anyhow and eyre to help with this mess.

[–] BartyDeCanter@piefed.social 3 points 22 hours ago* (last edited 21 hours ago)

My current solution is usually to just make a bunch of stupid match statements and fix whatever clippy complains about. Then if any remain be sure to “accidentally“ tag the friendliest rust expert I know on the PR and see if they say anything.

edit: They usually say something like, “you could replace those matches with a and_else, map_err, unwrap_or, and_then? and a filter_map.”