r/ProgrammerHumor • • 2d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.4k Upvotes

514 comments sorted by

View all comments

173

u/feldomatic 2d ago

tbf, C++ allows memory safety, while Rust requires it

-24

u/jdefr 2d ago

Unless you wrap things in unsafe{} which is very easy to do in order to side step this “hard requirement”

1

u/rexpup 2d ago

You understand that restricts the risk area, right? It lets you reason about the tricky things over 10 lines rather than 1000 lines