Date: Fri, 17 Feb 2023 14:30:38 +0000
On Fri, Feb 17, 2023 at 2:25 PM Bo Persson via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> if (condition)
> continue;
>
> most often can be replaced by
>
> if (!condition)
> {
> // rest of the loop
> }
I'm addicted to 'continue'. I always use the former rather than the
latter, for two reason:
(1) My brain finds it easier to decipher the flow of control
(2) One less level of indentation
<std-proposals_at_[hidden]> wrote:
>
> if (condition)
> continue;
>
> most often can be replaced by
>
> if (!condition)
> {
> // rest of the loop
> }
I'm addicted to 'continue'. I always use the former rather than the
latter, for two reason:
(1) My brain finds it easier to decipher the flow of control
(2) One less level of indentation
Received on 2023-02-17 14:30:49