Skip to content

Should VariantExpression allow expressions as keys? #188

Closed
@stasm

Description

@stasm

Given a term defined as follows:

-thing = {
    *[one] Thing
    [other] Things
}

Should we allow this?

own = You have { $count ->
    *[one] {-thing[$count]}
    [other] {-thing[$count]}
}

Right now we require the proper key to be specified in the VariantExpression, like so:

own = You have { $count ->
    *[one] {-thing[one]}
    [other] {-thing[other]}
}

Note that because we allow all valid variant keys, this is currently also legal:

own = You have { $count ->
    *[one] {-thing[1]}
    [other] {-thing[other]}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    FUTUREIdeas and requests to consider after Fluent 1.0syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions