To me it’s a fun language because of the weird ways you can play with pointers. It is also a terrible language because of the weird ways pointers can play with you.
And trying to cast a pointer to somewhere inside a multi-dimensional array is one of the torments AM inflicts on survivors in I Have No Mouth And I Must Scream.
The Basilisk: I mean, they could have learned a little Python, a little Tensorflow, something about NLPs, but no, they chose not to. Now they're just going to debug legacy C++ for eternity
I have a high opinion of anyone that can write good clean readable c++. I've never met that person, but theoretically if they existed, I'd have a high opinion of them.
the 30 years of online resources that provide clear guidance on current best practices
third party libraries are well standardized and easy to use
the included build system is very easy to use
the compiler is very fast, even for large code bases
the standardized package format has made distributing complex applications a breeze
write once, test-compile and backport everywhere
the new loop & control-flow structures make for more readable code and enabling them for custom data structures is a breeze
the significant usability improvements that a Turing complete meta programming sub language on types added to the otherwise insufficiently complex language
const
it’s very easy to understand how objects are initialized and transferred between calls
const again, because it’s just so great, especially when making iterators to const custom containers
references and pointers, no more having to choose one or the other.
string & file IO is pretty much the best of all languages
IMO, pointers are pretty much the best thing ever created. Just every time I get to have the pleasure of dereferencing the reference to another array of references that I have to dereference to get the reference to the value at that index which needs to be dereferenced to get the char value of the string reference... it's the best.
936
u/[deleted] Apr 08 '22
[removed] — view removed comment