5 ms·
As a daily user and occasional language-lawyer of many C++ features: your perfectly reasonable understanding of the practical relationship between the two ("C++
by thrtythreeforty 2y ago
As a daily user and occasional language-lawyer of many C++ features: your perfectly reasonable understanding of the practical relationship between the two ("C++ is a superset of C") deeply irritates a certain type of highly pedantic language nerd, who feels compelled to point out that C is not in fact a subset of C++ and that your opinion is therefore invalid.
- morkalork 2y agoWhich is hilarious because I've interacted with people working in some extremely deep in-the-weeds C++ code describe their company's coding standard as "oh its just C with classes" heheh.
- kevin_thibedeau 2y agoTry initializing a sparse const array (in .rodata) in C++. It's easy-peasy with C's designated array initializers. With C++, the best you can do is a monstrosity with a constexpr lambda filling out a std::array.