lambda side effects

When writing my previous post, I was thinking of lamba expressions in C++0x simply as syntactic sugar, a nicer way to express what I wanted to do, without the need to constantly create helper functors.

In this post, Dean Michael Berris talks about a nice way to exploit lambda expressions and take advantage of the high level you are writing code at.
If you consider intel's TBB, and think of how they implement it, having built in support for lambda expressions in C++ is a great way to allow the compiler to decide how parallel the execution should be.
This is a nice example of just how big the implications of a new language revision might be. And why they should be well though out before releasing them.

About this entry