Quote:
Original post by Katie
"How do you propose I do the following with templates? I don't think we mean the same thing when we're talking about pattern matching."
{and then something that looks like some dialect of Prolog}
So what you're basically saying here is that C++ is no good because you can't write code in a completely different language in C++?
No. Since the assertion was made that pattern matching can be achieved using templates I got curious and wanted to know if that was indeed the case or if we were misunderstanding each other. If you read my posts, you will see that I'm definitely not saying C++ is "no good;" I'm simply putting forward the point that the lack of one feature or another isn't an attempt to limit the programmer, but a design choice. If you feel multiple inheritance and operator overloading are extremely important that's up to you, and I'm not saying they aren't (just that
to me, they aren't,) but saying that "language X doesn't have my favourite feature from language Y, so it's trying to limit the power of the programmer" is just like saying "my hammer is more powerful than your screwdriver;" they're both used to attach things to each other, in a completely different way.
Following your reasoning, didn't you previously say that other languages are no good because you can't use them to write C++?
You should try out some of these "limiting" languages some time; who knows, it just might make you a better C++ programmer, just like anyone writing managed code for a living would do well to get under the hood and have a taste of lolsegfault every once in a while and any functional programmer who doesn't know what happens to all their maps and folds at compile time is bound to write pretty suboptimal code.
Quote:
Oh is THAT what it is.
Ah, I can sleep much easier at night now; you're not a Prologger, you're just another Haskell nutter. You guys are ten a penny round here. Sometimes we have to fetch large brooms to sweep your huddled masses off the front step to be able to go in and do some work. It's all too common to have clumpy hordes of academics leaking out of the uni as their PhD ends and no proper academia beckons, each carrying nothing more than their MFTL.
/../
I find your strong opinion about something which you don't know the first thing about amusing. I also find it quite interesting that you're harping on and on about how "useful" C++ is while decrying Java, C# and other languages for "limititing the power of the programmer" when in fact most any "limiting" language is used far more widely than C++.