this post was submitted on 18 Dec 2025
342 points (98.9% liked)

Programmer Humor

39892 readers
28 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] locuester@lemmy.zip 34 points 3 weeks ago

Box is a bad example; it always has a value and can’t be unwrapped. It’s Result and Option that are the primary wrappers.

Result is for Errors, and Option is for nullables. If you consider it that way, the “issues” with unwrap are identical to other languages when errors and nulls aren’t properly handled.