Re:Go in Production – Lessons Learned
by partiallattice on Saturday November 07, 2020 @01:01PM
(#25016900)
Most of the time, sure, but there are lots of cases where `defer` being function scoped leads to manual unlocks, e.g. inside loops or short critical sections in the middle of a function. Yes, you can use closures/otherwise, but few codebases are that disciplined. Those edge cases are plentiful enough that catching panics is dangerous.
[ Parent
| on HN ]
There are no comments on this comment yet.