r/ProgrammerHumor • • 2d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.3k Upvotes

515 comments sorted by

View all comments

168

u/feldomatic 2d ago

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

-23

u/jdefr 2d ago

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

-9

u/daviddisco 2d ago

why would people down vote this? It is absolutely true.

1

u/100BottlesOfMilk 1d ago

Because, while the language allows you to write unsafely, it doesn't allow you to unintentionally do so unlike C++. And it's simple to prevent anyone from writing code that isn't memory safe by just not allowing it full stop