Re:Go-benchmark: Golang benchmarks used for optimizing code
by joppy on Wednesday June 20, 2018 @08:12AM
(#17354596)
Defer is for reclaiming resources, or other cleanup at the end of a function which cannot otherwise be handled by the language, and (usually?) this is not going to be in your hot path; for example opening and closing a file many many times is not really a good thing to do anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.