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

Having lexicial scope it is same as -> defer fn{if(some condition) x() }() within scope.


Except 'some condition' may change, can be long, or expensive, so you likely need an extra variable.




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

Search: