Skip to content

Add interpolation syntax (f-syntax) for strings #14

@kodek16

Description

@kodek16

Add a new string literal form that looks like f"...". Inside this literal, $ character has a special meaning: it must be followed by an expression that is evaluated, converted to string, and inserted in the string constructed from the literal at evaluation time.

Two interpolation patterns should be supported: $name evaluates the variable named name, while ${x} evaluates an arbitrary expression x.

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