7 ms·
Having lexicial scope it is same as -> defer fn{if(some condition) x() }() within scope.
by raluk 1y ago
Having lexicial scope it is same as -> defer fn{if(some condition) x() }() within scope.
- tgv 1y agoExcept 'some condition' may change, can be long, or expensive, so you likely need an extra variable.