Post #3820999
2026-07-14 21:56 UTC
One thing coming in future C revisions is C++ like variable declarations in conditional and switch statements.
if (auto myFoo = foo_new()) {
foo_do_bar(myFoo);
}
such that myFoo is only in scope inside the braces. That is, make if work basically like how you can declare in for.
Replies (0)
No replies.