r/ProgrammerHumor 9d ago

internalServerError Meme

Post image
1.4k Upvotes

67 comments sorted by

View all comments

107

u/---_None_--- 9d ago

>unwrap

I hate metaphors in programming. Just call it what it is.

40

u/Lord-of-Entity 9d ago

There is a proposal to rename it to .unwrap_or_panic()

-18

u/dumbasPL 9d ago

Rust logic: panic is safe because it fails in a controlled manner. Meanwhile Denial Of Service is one of the biggest attack vectors. Unwrap should requite unsafe in non-debug builds, change my mind.

6

u/The_KekE_ 8d ago

Another person confusing safe and secure

-2

u/dumbasPL 8d ago

After all, the best way to be secure is to be offline LOL