Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hey lispers, knights of the lambda calculus

Name: Anonymous 2011-01-23 14:03

its over; you've lost. C++0x will have lambda functions. 2011 is the year of C++0x and there is not a goddamn thing you can do about it.

Name: Anonymous 2011-01-23 16:01

>>2
Agreed. Sadly, the C++ people will probably keep going with this until they have a bunch of features from other languages all cobbled together, so that way they will have the ultimate justification for not learning/using a language other than C++ (rather than the real reason, which is stupidity).

Actually, I just looked up what the lambda expressions look like. Jesus Christ, what a pile of shit. According to Wikipedia, summing the values of a vector looks like this:

std::vector<int> some_list;
int total = 0;
std::for_each(some_list.begin(), some_list.end(), [&total](int x) {
  total += x;
});


Nasty. I'll stick with Scheme/Haskell, thanks.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List