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

One problem is that closures don't actually behave like blocks. Consider that you might want to use this three-legged-if inside a loop. If it's a real statement, then those branches can have `break;` and `continue;` statements which affect the surrounding loop. If those branches are just closures being passed to a function, then they can't.




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

Search: