C++ Logo

std-proposals

Advanced search

Re: [std-proposals] !continue

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 6 Nov 2023 01:30:20 +0200
On Mon, 6 Nov 2023 at 01:25, Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
> Bjorn wrote:
> > The usual solution is to move the increment into the loop
> >
> > while (Serial.available()) {
> > // Do stuff
> > if (condition) {
> > // Do conditional stuff
> > p = buf;
> > } else {
> > ++p;
> > }
> > }
>
>
> Again here you're losing the simplicity of having 'continue' in other
> places in the loop (if the loop were bigger and more complex).

Yeah well, perhaps the solution to that problem isn't a facility
spelled "not continue". Because for
!continue, that's a valid alternative spelling.

Received on 2023-11-05 23:30:33