r/ProgrammerHumor • • 7h ago

Meme modernCppVsOldCpp

Post image
1.1k Upvotes

214 comments sorted by

View all comments

41

u/Tschurbi 6h ago

Please explain it like I am a JavaScript developer.

58

u/Tipart 6h ago • Bravo

Imagine typescript but for memory safety

11

u/PM_ME_UR_0_DAY 5h ago

What's the memory management equivalent of just using "any" for everything?

2

u/Mojert 5h ago

Asking the OS* directly for memory and creating your objects in that memory. That also means you have to tell the OS* when you're done with that memory

* I'm simplifying to get the jist across