Skip to content

Move INTEGER/REAL/other accessors out of loops #7623

Open

Description

@aitap

We are always so picky about moving INTEGER out of loops, but apparently here we did not care yet.

Originally posted by @ben-schwen in #7598 (comment)

It might be possible to write a linter that detects some cases where the expression in accessor(expression) does not depend on the current loop iteration.

Activity

  1. added
    code-quality
    on Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions