3 ms·
I think "totally different" is not an entirely fair characterization of a commonly used superset.
by happytoexplain 2y ago
I think "totally different" is not an entirely fair characterization of a commonly used superset.
- thrtythreeforty 2y agoAs 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.
- bawolff 2y agoI dont really think it matters if its totally different or sort of different. Their answer either works or it doesn't in the programming language being asked about.