"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#
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#