B
belvis
Ted said:One reason I avoid
C++ templates is because of the implementation complexity in the compiler.
I still don't get this. How does it matter to your effectiveness as a
programmer whether a feature in the compiler was difficult for someone
else to implement?
? I haven't used the optimization settings in my compiler for years.
And because you don't need them, no one else does? Just like templates,
I guess.
He couldn't do it and I could.
In his very first post to your thread on c.l.c++.m he said he had used
the preprocessor to generate generic code. Do you think he was lying?
Sorry. I'm not buying your spiel. Is it 10 times more work or not?
I don't know; what if it's only 9 times more work? Would that make you
right? How about 8 times?
Instead of getting hung up on trivialities like whether it's 10 times
more work or not, you should pay attention to the meat of the point,
which is: Preprocessor-generated generic code is more work than using
templates.
Saying "10 times more work" means that you either are exaggerating or that
you don't know how to do it.
You left out "or that you do know how to do it and chose to use a
casual idiom to express its difficulty."
Which is it? This needs clarification because
Because Ted would rather pick on conversational idioms than address the
technical content.
it is being used as reason why preprocessor-based templates are deficient
compared to C++ templates. It's misinformation for the uninitiated coming
into the group and reading that.
How can you seriously consider a common colloquialism like "10 times"
(meaning "a lot more", not a literal numerical factor) to be _more_
misinformative than advising that a major component of C++ should be
avoided in favor of an inferior manual replacement?
Bob