On 7 Mai, 10:47, James Kanze <james.ka...@gmail.com> wrote:
As you say, the code isn't doing the same thing. For very small
programs (up to, say, 500 lines of code), yes. C++ is more
verbose than, say, AWK or Python. And in fact, for such things,
I use AWK, and not C++. For larger projects, however, the
"verbosity" of C++ fulfills an important function---keeping the
interface specification separate from the implementation code.
While I think C++ is probably a little more verbose than Ada 95,
I don't think that the difference is significant. And I don't
know of any other language which provides comparable features,
and which could really be used for the sort of projects C++
would typically be used for.
Regarding separating interface from implementation (.hpp/.cpp): The
Java folks don't seem to have a problem with the lack of header
files. They can write "interface XXX {...}" and/or just let the
javadoc tool generate some nice HTML documentation from the source
code.
usually consider it a mistake. James and I have had this