TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25167 14
What do you use for `defer` semantics on your C++ codebase?

The moderators removed this post for understandable reasons: https://old.reddit.com/r/cpp/comments/1t9792i/ziglike_defer_for_c20_and_above/

But underneath it was a great discussion about the broader `defer` idea in C++. I'd love to have that conversation.

What do you use for this behavior in your code? What are the pros and cons of the choice you made?

https://redd.it/1t99ecg
@r_cpp
Reddit From the cpp community on Reddit: [ Removed by moderator ] Posted by Rude-Initial7886 - 6 votes and 22 comments
More from @r_cpp
  1. Oct 3, 2026C++ Show and Tell - October 2026 Use this thread to share anything you've written in C++.…
  2. Oct 3, 2026C++ future at Adobe So if anyone was still curious what happened to Hylo, or where Adobe s…
  3. Oct 3, 2026C++ Jobs - Q4 2026 Rules For Individuals --------------------- * **Don't** create top-leve…
  4. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  5. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  6. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →