5 ms·
where with C++ I did it for about a year and never really felt I had a real handle on all the idioms. With all the Modern C++ changes happening, it seems like
by userbinator 8y ago
where with C++ I did it for about a year and never really felt I had a real handle on all the idioms.
With all the Modern C++ changes happening, it seems like the standards committee is actively making it harder for people who want to understand the language completely. I much prefer C to C++ for the same reason, although I think some features from C++ are genuinely useful, like classes.
- tombert 8y agoI found that when I wrote C++, I almost exclusively ended up using features that were already in C; obviously there are no classes in C, but I was happy enough using structs and functions that just take a pointer of that struct type for the first argument.
- Longhanks 8y agoWhich is why the functions in <algorithm> and many more STL headers are just that; templated functions. There's nothing wrong with them. However, modern C++ enables safer and clearer semantics than what raw pointers offer, such as references or smart pointers.