this post was submitted on 17 Dec 2025
464 points (96.0% liked)
Programmer Humor
27933 readers
674 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Most of the times you can just
let ... else(which is basically a custom?if you needif let ... elseit's because you actually need 2 branching code paths. In any other language you also doif ... elsewhen you have 2 different code branches. I don't see why this is a rust-specific issue.