Skip to content

Document why we need unquoted literals #478

@stasm

Description

@stasm

In #477, we're documenting the design of quoted literals. We should have a similar document about unquoted literals. In particular, we have good reasons for unquoted literals to be used as variant keys and option values. There are also use-cases for using them in operand positions, especially number literals.

I think a design doc about the unquotes literals would be useful in the context of the following ongoing discussions:

  • How close to nmtoken do we want the unquoted literals to be?
  • What syntax and sigils do we want to use for open/close elements?
  • If and how to allow negative numbers as unquoted literals?
  • If and how to make literals in operands and literals in keys/optvals follow the same syntax rules?
  • What syntax to adopt or recommend for namespacing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    designDesign document or issues related to designresolve-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