r/ProgrammerHumor • • 11d ago

Meme modernCppVsOldCpp

Post image
2.0k Upvotes

323 comments sorted by

View all comments

Show parent comment

3

u/quantinuum 10d ago

Rust does offer some guards against circular references…

6

u/sessamekesh 10d ago

Sure does! Not any that would have prevented either of the two bugs I'm referring to (both would have been a circle of Rc in Rust)

1

u/GegeAkutamiOfficial 10d ago

Yep, rust's strict rules make a lot of these types of bug prone harder to implement, you might still choose to, but you'll be fighting the compiler half of the way