Skip to content

String interpolation  #135

Open
Open
@Champii

Description

@Champii
`${foo}, ${bar}`.print!

This could desugar to:

"${0}, ${1}".format foo, bar .print!

I think it is important to introduce a new syntactic construct here with the back-quote '`', to also allow users to construct raw strings that would not be interpolated.

"${foo}, ${bar}".print!

This would just print the string as is, without interpolation.

Originally posted by @Champii in #122 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions