4 ms·
Where did you saw first class functions in C++??? It doesn't even have closures!
by loup-vaillant 17y ago
Where did you saw first class functions in C++??? It doesn't even have closures!
- fauigerzigerk 17y agoSorry, I meant to say function pointers. But hey, I'm far from a big supporter of C++. I know its deficiencies very well unfortunately.
- loup-vaillant 17y agoOK, then. I will just say that in my experience, C++ and Java don't have a huge difference in expressibility. What C++ may gain with syntactic tricks, it loses with manual memory management. Anyway, in the face of Haskell and Lisp, the differences between java an C++ don't look that great.
- shrughes 17y agoC++ and C++ development are hugely different from Java and Java development. If Java and C++ don't look very different to you, it's because you need to take another look at C++. About the only thing they have in common is their hideous verbosity. You can write C++ as if it were like Java, but you can write C++ as if it were like Haskell, too. Given the question, "What mainstream language is most like Haskell," the answer is C++. Unlike Java, C++ is actually capable of sidestepping its limitations.