Skip to content

better string interpolation #1250

Closed
Closed
@antonkulaga

Description

@antonkulaga

things like:

    let name = "Anton".to_string();
    print!("hello {}",name);

are akward and verbose. What about scala-like string interpolation that will work everywhere (not only in print statements)

    let name = "Anton".to_string();
    print!(s"hello {name}"); // Scala uses s"${variableName}" but I think $ is redundant

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions