TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Improved `__attribute__((cleanup))` through `defer`

4 pointsby sigsev_251over 1 year ago

1 comment

sixthDotover 1 year ago
The specs look good but &quot;again&quot; this is a problem that&#x27;s been solved by other languages since years, I think particularily to D &quot;scope guards&quot; (<a href="https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;statement.html#scope-guard-statement" rel="nofollow noreferrer">https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;statement.html#scope-guard-statement</a>).