Grand Central Dispatch Now Open to All
macresearch.org
macresearch.org
http://www.macresearch.org/cocoa-scientists-xxxi-all-aboard-...
Are there any C++ experts who could speak to whether there is any reason that the caret would not work in that language?
(Edit: spelling correction)
In practical terms, I doubt the C++ committee would change the already delayed C++0x standard to accommodate a feature which may (but probably won't) make it into C.
FWIW, it looks like the concept of a block is also an anonymous function, although it looks as if they only allow passing into them by value, not by reference. The developer documentation at Apple indicates that they also support these within C++, and has a small section on how they behave within it. So, at least, they went the extra mile and worked out the C++ parsing issues.
http://developer.apple.com/mac/articles/cocoa/introblocksgcd...
"To head off the obvious question: this syntax and implementation has nothing to do with C++ lambdas. Blocks are designed to work well with C and Objective-C, and unfortunately C++ lambdas really require a language with templates to be very useful. The syntax of blocks and C++ lambdas are completely different, so we expect to eventually support both in the same compiler."
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-August/00267...
You're right in that, as far as I can tell, there are no new ideas in GCD. But it's integrated into the language, compiler, runtime system, kernel, and developers can assume that it is present on any Mac OS 10.6 and greater. That makes a big difference.
Further discussion: http://news.ycombinator.com/item?id=782399