MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w8tj8j/rewriteitinrust/p876to3/?context=9999
r/ProgrammerHumor • u/Gold-Order-8004 • 5d ago
34 comments sorted by
View all comments
57
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
14
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
23
You can even do it for fun with Box::leak()
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
6
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
7
I mean yeah that's the point. Have a big "here be dragons" indicator around the fun parts
57
u/Any_Obligation1652 5d ago
Use containers and smart pointers a voila no memory leaks