C++ Logo

std-proposals

Advanced search

Re: [std-proposals] goto is not harmful (was: "once" keyword)

From: Barry Revzin <barry.revzin_at_[hidden]>
Date: Wed, 24 May 2023 10:42:58 -0500
On Wed, May 24, 2023, 9:45 AM Federico Kircheis via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> > Yes, implementors have reported that it would be very difficult to
> > implement.
> >
>
> Out of curiosity, was goto in constexpr evaluation proposed and rejected?
>
> Would like to know more about this statement.
>

Sort of, N4472. When it was discussed in 2015, the minutes mostly mention
constexpr lambdas.. And there was a poll to add constexpr goto which was
11-5.

Given that constexpr lambdas now exist, maybe that's worth revisiting?

Barry

>

Received on 2023-05-24 15:43:11