Maybe the premise of this question is wrong... but I seem to recall reading somewhere that you hate C but built C++ on top of it because it was popular. Is that true and if so, do you ever feel bad about the bait and switch?
Further, since C++ is often called 'a better C' and is not backwards compatible with C compilers, will there be specification changes to sanitize and improve the lower level C aspects that are problematic? Examples would be strict parsing of the language without compiler dependent ambiguity, removal of duplicate constructs such as the ternary operator, requiring braces after all conditionals, strictly defining the bit width of standard types (int = 32 bits, short = 16 bits, char = 8 bits), etc.
If you read his "Design and Evolution of C++", which is a great book, you'll find that he really liked the classes from Simula 67, and found it painful to translate all that into C when he actually had to run a large-scale simulation. The original "C with Classes" was a language that compiled to fast code and was heavily portable, but had Simula 67 classes.
If you're going to ask about a "bait and switch", could you be specific about what you think that is?
NOWPRINT. NOWPRINT. Clemclone, back to the shadows again.
- The Firesign Theater
Do you ever feel bad? (Score:3, Interesting)
Re: (Score:2)
Further, since C++ is often called 'a better C' and is not backwards compatible with C compilers, will there be specification changes to sanitize and improve the lower level C aspects that are problematic? Examples would be strict parsing of the language without compiler dependent ambiguity, removal of duplicate constructs such as the ternary operator, requiring braces after all conditionals, strictly defining the bit width of standard types (int = 32 bits, short = 16 bits, char = 8 bits), etc.
Re: (Score:2)
If you read his "Design and Evolution of C++", which is a great book, you'll find that he really liked the classes from Simula 67, and found it painful to translate all that into C when he actually had to run a large-scale simulation. The original "C with Classes" was a language that compiled to fast code and was heavily portable, but had Simula 67 classes.
If you're going to ask about a "bait and switch", could you be specific about what you think that is?