3 ms·
I think this might be satire but can’t quite tell… They answered a programming language question with an answer that only applies to a totally different progra
by _yb2s 2y ago
I think this might be satire but can’t quite tell…
They answered a programming language question with an answer that only applies to a totally different programming language, and then wrote this whole article complaining about being down voted?
Although, the last image made the click worth it.
- happytoexplain 2y agoI 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.