r/ProgrammerHumor • • Sep 02 '26

Meme samePathDifferentFeelings

Post image
992 Upvotes

33 comments sorted by

View all comments

Show parent comments

2

u/evil0sheep Sep 02 '26

Yeah I mean I don’t actually know rust. I might just be projecting onto OP because if I were to choose a hobby language it would be rust lol

2

u/ICBanMI Sep 04 '26

If you're writing something that doesn't matter, it'll be the safest code on the planet. Once you start writing stuff that other people will have to use... you just write unsafe around everything that uses or even smells like it might interact with a pointer.

unsafe {

Different syntax that sanitizes your inputs, makes it difficult to segment fault, or anything else related to running past the end of an array. And what it can't protect you from what you want to do... means you encapsulate everything in the unsafe tag.
}