yaml / yaml-grammar

71 stars 12 forks source link

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

Open aSemy opened 6 months ago

aSemy commented 6 months ago

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: