Hacker News new | comments | show | ask | jobs | submit login

For a long time I could not understand why anonymous closures were not implemented in c/c++, and even had arguments on forums, but then realized that people just do not think in that terms. You can provide lambdas, but they will use these for iterators or similar bs. And there is no better technique or framework for the case you described, they just don't do that at all.

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