Name: Anonymous 2008-04-01 17:01
They've added every programming construct ever created, and they're all represented by the characters []<>&():.
Are you guys pumped up for this shit?
Are you guys pumped up for this shit?
lamdba functions. This is very worrying.boost::bind. The syntax is nasty as fuck (same with Boost.Lambda), but the functionality is there.std::vector<int> someList;
int total = 0;
std::for_each(someList.begin(), someList.end(), [&total](int x) {
total += x
});
std::cout << total;[&total] tells it which local variables it lambda references.
var someList = new List<int>();
int total = 0;
someList.ForEach((x) => total += x);
MessageBox.Show(total.ToString());int total = someList.Sum(); using Linq.