Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
teo_zero
on Jan 7, 2025
|
parent
|
context
|
favorite
| on:
C: Simple Defer, Ready to Use
The macro implementation requires braces. Even when the deferred action is a single statement you can't use this:
defer fclose(f);
Not a serious problem, just inelegant.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: