Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can now implicitly cast lambdas to blocks, although they're otherwise completely separate (and must be - C++'s approach wouldn't easily translate to C).


They can be cast the other way, too. No?


Casting to a C++11 lambda doesn't really make any sense; each lambda function is a unique anonymous type. There's also no need to do any casting to use an Obj-C block anywhere that you can use a C++11 lambda, since they obviously already implement the Callable concept.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: