Skip to content

Strict variable expansion #13

@zudov

Description

@zudov

We've run into a bit of confusion (here KSF-Media/tuttifrutti#12) with identifier parsing in our log module when using template to support variable interpolation.

While the actual issue comes from the lack of documentation in our library. I think we could eliminate such confusion by adding a "strict" mode in which, $foo won't be allowed, only ${foo}. It will also eliminate the need to escape $ with $$.

Such functionality could be added in backwards compatible way by introducing a templateStrict :: Text -> Template that has such behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions