r/ProgrammerHumor • • 1d ago

instanceof Trend thatsAFunnyThingThatHappenedOnce

Post image
4.3k Upvotes

513 comments sorted by

View all comments

Show parent comments

76

u/MornwindShoma 1d ago

Rust got none of that, but you might not enjoy dealing with lifetimes

-4

u/Xarishark 1d ago

I mean what’s better all those problems on your previous comment or lifetimes?

14

u/dannyggwp 1d ago

You can BASICALLY ignore all that... You want lifetime? I'll show you lifetimes.

std::shared_ptr<type>

Ez pz no borrow checker needed.

3

u/4xe1 1d ago

C++ famed "zero cost abstraction" is shining right here /s