C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal regarding labeld breaking and continuation

From: Bjorn Reese <breese_at_[hidden]>
Date: Fri, 17 Feb 2023 17:54:50 +0100
On 2/17/23 13:30, Hypatia (of) Sva via Std-Proposals wrote:

> ## Error handling with an error block

There is another idiom that gives you a single point of return

   if (failure) goto error;
   // do normal stuff without returning
   if (false) error: {
     // error handling
   }

Received on 2023-02-17 16:54:53