Hacker News new | ask | show | jobs
by raluk 293 days ago
Having lexicial scope it is same as -> defer fn{if(some condition) x() }() within scope.
1 comments

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