Skip to content

Names for Rules Variables are difficult to understand in context #9

@aSemy

Description

@aSemy

The spec describes 4 rule variables, n, m, c, and t.

I find a terse, single letter, variable in the spec difficult for two reasons:

  1. When looking at the rules, it is difficult to remember what each letter means. If the variables were named with a brief summary of the actual value, it would be easier to remember the actual meaning.
  2. The short names make searching for usages impossible. If the names were distinct, then it would be possible to quickly find usages and the definition.

I would find the spec easier to understand if the names were more descriptive. For example:

  • ncurrentIndent
  • madditionalIndent
  • ccurrentContext
  • twhitespaceTrim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions