Blogs / Personal blogs

Kevin Cox

kevincox.ca

Software developer and all around nerd. I am webscale.

Popular posts
2
Total points
325
HN comments
158
Rank
#8,240 personal

Visit kevincox.ca → RSS feedOn Hacker News May 2022 – May 2022

Web & Frontend 2Tools & Productivity 1Design & UX 1

1

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.