Hacker News new | past | comments | ask | show | jobs | submit login
Improved `__attribute__((cleanup))` through `defer` (thephd.dev)
4 points by sigsev_251 9 months ago | hide | past | favorite | 1 comment



The specs look good but "again" this is a problem that's been solved by other languages since years, I think particularily to D "scope guards" (https://dlang.org/spec/statement.html#scope-guard-statement).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: