[TRIVIAL] Remove continue statement at the end of loop. #12181

pull ghost wants to merge 1 commits into bitcoin:master from changing 1 files +0 −1
  1. ghost commented at 5:17 PM on January 14, 2018: none

    No description provided.

  2. Remove continue statement at the end of loop. 6af7bc9b12
  3. MarcoFalke commented at 9:41 PM on January 14, 2018: member

    Tend to NACK here. This serves as documentation, indicating that the (large) scope is indeed the scope of a loop.

  4. bolekC commented at 9:54 PM on January 14, 2018: none

    Tend to agree with NACK. This code is anyway a bit too long so continue can help to read.

  5. ghost commented at 10:08 PM on January 14, 2018: none

    I think a comment at the end of the scope might serve as better documentation ( // End while loop ). A continue does not provide this information IMHO.

  6. MarcoFalke commented at 10:24 PM on January 14, 2018: member

    A continue does not provide this information IMHO.

    It does. It is even compile-time enforced documentation, in contrast to a comment, which easily gets outdated.

  7. ghost commented at 10:32 PM on January 14, 2018: none

    I'm indifferent to the outcome but it's not a compile-time enforced documentation. It's bikeshedding at this point.

  8. MarcoFalke commented at 10:35 PM on January 14, 2018: member

    heh, right. Better close it :)

  9. MarcoFalke closed this on Jan 14, 2018

  10. bolekC commented at 10:36 PM on January 14, 2018: none

    A continue does not provide this information IMHO.

    It does. It is even compile-time enforced documentation, in contrast to a comment, which easily gets outdated.

    Can you check if compiler generates the same code in both cases ?

  11. MarcoFalke commented at 10:38 PM on January 14, 2018: member

    I meant that the compiler will error out, if you place a continue at the end of a random non-loop scope.

  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me