Kevin Cox personal blog
Wrong by Default
A few programming languages use a “defer” pattern for resource cleanup. This is a construct such as a defer keyword which schedules cleanup code to run at the end of the enclosing block (or function). This is available in Zig, Go and even in GCC C.
- Points
- 105
- HN comments
- 80
- Submissions
- 1
- Cited by
- 0 commenters
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 14, 2022 | Wrong by Default by nalgeon | 105 | 80 |