Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wffurr
59 days ago
|
parent
|
context
|
favorite
| on:
Braiding the spaghetti: implementing defer in the ...
*in non portable non standard C
gobblegobble2
59 days ago
|
next
[–]
Supported by both gcc and clang, so portable enough for most people. I also like glib's cleanup attribute wrappers:
https://docs.gtk.org/glib/auto-cleanup.html
.
wyldfire
59 days ago
|
prev
[–]
It is non portable, that's true. But defer [1] is at least undergoing discussions w/the standard committee. Didn't make it into C23 but maybe next time.
[1]
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2895.htm
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: