J
jacob navia
Hi
We were discussing this point in comp.lang.c
1) Some people say that templates and classes are "optional" in C++.
2) I argued against this. My reasoning is as follows:
C++ is compatible (up to a certain point, but mostly) with C. Then,
actually you can program in C, without using any C++ features OF COURSE.
C++ would be then an "optional" language.
But I think that is wrong. One of the central concepts in C++
is the concept of class and inheritance, and all its associated baggage
like constructors/destructors/copy constructors/ what have you.
This is not optional at all.
Another C++ concept are templates. They are a central part of C++ and
its standard library.
These are not "optional" features.
Following the above logic you could even say that division is
optional. If you do not use it in your program, you never would
think it was there
I tay by my definition. The concept of class and inheritance is
one of the central concepts of C++ and it is not optional at all.
We were discussing this point in comp.lang.c
1) Some people say that templates and classes are "optional" in C++.
2) I argued against this. My reasoning is as follows:
C++ is compatible (up to a certain point, but mostly) with C. Then,
actually you can program in C, without using any C++ features OF COURSE.
C++ would be then an "optional" language.
But I think that is wrong. One of the central concepts in C++
is the concept of class and inheritance, and all its associated baggage
like constructors/destructors/copy constructors/ what have you.
This is not optional at all.
Another C++ concept are templates. They are a central part of C++ and
its standard library.
These are not "optional" features.
Following the above logic you could even say that division is
optional. If you do not use it in your program, you never would
think it was there
I tay by my definition. The concept of class and inheritance is
one of the central concepts of C++ and it is not optional at all.