News for hackers. Stuff that matters.
Re:Linus vs C++, again by eru on Thursday June 10, 2010 @07:37PM (#1422177)
> Polymorphism also gives you what amounts to functional programming without touching C's awful function pointer syntax.

Which aspects of functional programming are you talking about?

Re:Linus vs C++, again by ajuc on Friday June 11, 2010 @02:28AM (#1423026)
Probably operator() and passing classes that have this operator implemented around.

For me it isn't better than function pointers, also because of method - function distinction we have 2 different incompatibile kinds of functions.

Re:Linus vs C++, again by eru on Friday June 11, 2010 @09:05AM (#1423694)
The operator() does not bring you any closer to functional programming. It's just syntactic sugar, maybe even nice sugar.
Re:Linus vs C++, again by Daniel_Newby on Friday June 11, 2010 @04:04PM (#1424562)
> Which aspects of functional programming are you talking about?

Passing around things that do work on other things -- easy with C++ worker objects, painful with C function pointers (or worse, pointers to structs full of function pointers).