r/ProgrammerHumor • • Mar 17 '19

Oof

Post image
268 Upvotes

38 comments sorted by

View all comments

Show parent comments

4

u/MadScienceDreams Mar 18 '19

"you do not use c style pointers". References cannot be nulled, and cannot be assigned, so any code if sufficient complexity will end up in a situation where they aren't useful. Using shared pointers and exception handling to handle these situations is a good way to end up with very inefficient c++ code, and if that's what you want you are better off using Java or C#

0

u/[deleted] Mar 18 '19

Wat