Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kgeist
on Jan 16, 2022
|
parent
|
context
|
favorite
| on:
A simple defer feature for C
Defer is used to automatically release resources on function exit, I'm not sure how result types will help here. Can you give an example?
the_gipsy
on Jan 16, 2022
[–]
It's an alternative to try...finally or RAII.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: