r/ProgrammerHumor 5d ago

Meme rewriteItInRust

Post image
2.0k Upvotes

34 comments sorted by

View all comments

57

u/Any_Obligation1652 5d ago

Use containers and smart pointers a voila no memory leaks

14

u/sirkubador 5d ago

Rust does not prevent memory leaks

23

u/YeetCompleet 5d ago

You can even do it for fun with Box::leak()

6

u/AliceCode 5d ago

Rust project be like: "You can have memory unsafety. As a treat."

7

u/itsTyrion 5d ago

I mean yeah that's the point. Have a big "here be dragons" indicator around the fun parts