Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I hoped for defer (e.g. "RAII" of sorts), is there any way?


According to https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p23..., it's an "unadopted feature being explored."

There's more information about the proposal at https://gustedt.wordpress.com/2022/01/15/a-defer-feature-usi...


There was an update on this just last week: https://github.com/ThePhD/future_cxx/issues/67#issuecomment-...




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

Search: