C++ is getting Lambda expressions! (and Cadbury creme egg cakes)
2008-03-31 00:28:00 PST
Tags: C/C++, Coding, Funny, Tech
C++0x, the next version of C++ due by the end of the decade has just had Lambda expressions added to the language. This is great!
Read about it at herbsutter.spaces.live.com/blog/cns.
It should look something like the following
find_if( w.begin(), w.end(), []( const Widget& w ) -> bool { w.Weight() > 100; } );
Sadly, Lambda expressions haven't made their way into GCC, so I can't play with them... yet!
Also, thanks to George for this:
Cadbury Egg Cake :D
Experiment:
Replace ordinary eggs in cake recipe with Cadbury Creme Eggs and observe results.
Hypothesis:
THIS IS GOING TO BE SO AWESOME




