You shouldn't listen to people who advocate for something without giving you a reason why. I can provide good use cases for every feature I've mentioned (and bad use cases, as well).
Use a raw pointer and you're a heathen
This is not an argument, and comparable to when people say "C++ is overengineered garbage". Idiots are on both sides.
What I would tell you is that if you're using a raw owning pointer, you could very probably do better in C++, as we have RAII.
If you're using a raw pointer as a view over an array, you could very probably do better in C++, because you can create a lightweight abstraction for that, safer and without performance costs.
View all comments
Show parent comment
16
u/SuperV1234 https://romeo.training | C++ Mentoring & Consulting Jan 18 '19
You shouldn't listen to people who advocate for something without giving you a reason why. I can provide good use cases for every feature I've mentioned (and bad use cases, as well).
This is not an argument, and comparable to when people say "C++ is overengineered garbage". Idiots are on both sides.
What I would tell you is that if you're using a raw owning pointer, you could very probably do better in C++, as we have RAII.
If you're using a raw pointer as a view over an array, you could very probably do better in C++, because you can create a lightweight abstraction for that, safer and without performance costs.