Skip to content

Set a consistent and readable variable name for Array#reduce accumulator variable #7378

@tofumatt

Description

@tofumatt

I pointed out (in #6782 (comment)) that we used settersAcc as the accumulator variable in some code and it wasn't obvious what it was from reading the code.

@aduth pointed out we are quite inconsistent with this variable: #6782 (comment)

It'd be nice to go through and clean these up:

  1. Make them consistent
  2. Put accumulator in the variable name (maybe make that the variable name suffix all the time).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Type] Code QualityIssues or PRs that relate to code quality[Type] Developer DocumentationDocumentation for developers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions