Skip to content

Use a different namespace to reference local variables #261

Closed
@stasm

Description

@stasm

@markusicu wrote in #230 (comment):

… once a variable has been subject to select-and-format, using it should require different syntax from regular variables, because we need to be clear that the placeholder is replaced consistently in each variant. If you just write {$count} then a developer has to wonder whether their formatting options apply; and you cannot allow formatting options on a select-and-format variable in the variant, because then the output may well not fit the selected variant any more (e.g., changing the number of fraction digits on a plural). So pick a symbol other than the dollar, and don't allow functions and options there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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