C++ Logo

std-proposals

Advanced search

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

From: Sebastian Wittmeier <wittmeier_at_[hidden]>
Date: Fri, 20 Dec 2024 13:13:39 +0100
Perl has "next label" and "last label" for loops and "goto label" also works. Also there is Go Language and D. -----Ursprüngliche Nachricht----- Von:Tiago Freire via Std-Proposals <std-proposals_at_[hidden]> Gesendet:Fr 20.12.2024 12:54 Betreff:Re: [std-proposals] Bringing break/continue with label to C++ An:Jan Schultke <janschultke_at_[hidden]>; CC:Tiago Freire <tmiguelf_at_[hidden]>; std-proposals_at_[hidden]; > > It's a unique feature that is being tried to push into C++. No other language does this! > Wrong. Perl supports exiting loops with "last LABEL" and jumping to statements with "goto LABEL", and the label syntax is always "LABEL: ...". Perl doesn't have a "break label" or "continue label" If you have another language that does this, why are those not the ones in the paper?

Received on 2024-12-20 12:15:52