C++ is getting Lambda expressions! (and Cadbury creme egg cakes)

2008-03-31 00:28:00 PST

Tags: , , ,

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

bigmixup.com/content/cadbury-cake

One Response to “C++ is getting Lambda expressions! (and Cadbury creme egg cakes)”

  1. Hahaha!! Cadbury Creme Eggs as replacement real eggs? That’s SO AWESOME.

    Oh, and Lambda expressions are pretty cool too.

Leave a Reply

Valid XHTML 1.0!
Valid CSS!
Mindstab.net is proudly powered by WordPress
Entries (RSS) and Comments (RSS).
17 queries. 0.351 seconds.