C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Bringing break/continue with label to C++

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Fri, 20 Dec 2024 16:11:18 +0200
On Fri, 20 Dec 2024 at 16:03, Jan Schultke <janschultke_at_[hidden]> wrote:
>
> > > Sure, but what is the technical reason why you need different syntax?
> >
> > That it's separate from labels and thus not subject to being a target of a goto.
>
> It's true that such labels cannot be targeted by goto. However, it
> does not create any parsing ambiguities, missed optimizations, etc. if

It creates a semantic ambiguity.

> they can. This is solving a non-technical problem. This is enshrining
> rules into the language to suit personal preferences.

It's very much a technical problem, and not a personal preference,
considering that the same
rationale appears in the feedback by others. It's not an "I feel like".

Received on 2024-12-20 14:11:31