167
submitted 6 days ago* (last edited 6 days ago) by qaz@lemmy.world to c/programmer_humor@programming.dev

Don't say anyway, say anyhow

you are viewing a single comment's thread
view the rest of the comments
[-] Korne127@lemmy.world 1 points 3 days ago

A very typical use-case would be getting something from a HashMap (or a Vector) and calling unwrap because you know it must exist (as you got a reference to the index or object that must be valid in the HashMap or Vector).
Or if you call a function that returns Option<…> depending on the current state and you know that it must return Some(…) in the current situation.

this post was submitted on 01 Aug 2025
167 points (97.2% liked)

Programmer Humor

25531 readers
1759 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

founded 2 years ago
MODERATORS