3 ms·
How about this one: "C++ is horrible because of implicit copy constructors"? That one's not in C :-). The newest additions to C++ for functional programming a
by nitrogen 13y ago
How about this one: "C++ is horrible because of implicit copy constructors"? That one's not in C :-).
The newest additions to C++ for functional programming and automatic typing are quite intriguing. Blaming everything wrong with C++ on C is as disingenuous as labeling everything about C++ as wrong because one thing about it is wrong.
- pjmlp 13y ago> How about this one: "C++ is horrible because of implicit copy constructors"? That one's not in C :-). I also mentioned compatibility with C semantics. "The Design and Evolution of C++" contains lots of such examples.
- nitrogen 13y agoC doesn't implicitly convert one struct into another. Why implicitly convert one class into another just because I created a constructor in one class that takes the other class as a parameter? The "explicit" keyword should have been "implicit", with the default behavior reversed.