Skip to content

Name syntax should align with XML #519

Closed
@gibson042

Description

@gibson042

As noted elsewhere (e.g., #399 (comment) ), it's not good to almost align with an external specification. name is already close to XML Name and even mentions it, and that gap should just be fully closed.

Doing so would have the following consequences:

  • unquoted would simplify to either 1*name-char (matching XML Nmtoken) or 1*unquoted-char (if expanding to e.g. include + for parity with -).
  • The function sigil would need to change from : to something that does not overlap with unquoted or other syntax (such as } for closing the expression, | for quoting, $ for variables, and any sigil indicating spannable open/close) and doesn't mislead developers—starting with !"#$%&'()*+,/;<=>?@[\]^`{|}~ for the first concern, I think that leaves something like *=@^~ in which @ is particularly attractive to me (e.g., {$count @number}) but a reasonable case could be made for any of the others.
    • ...or alternatively (but very unlikely), the function sigil could be | as in Jinja and literal quoting would use something else (e.g., {~0.40~ |number style=percent})

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    LDML45LDML45 Release (Tech Preview)resolve-candidateThis issue appears to have been answered or resolved, and may be closed soon.syntaxIssues related with syntax or ABNF

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions