Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

String Interpolation #940

Copy link
Copy link
@peq

Description

@peq
Issue body actions

Add a nicer way to construct strings.

So instead of

return "(" + v.x.toString() + ", " + v.y.toString() + ", " + v.z.toString() + ")"

we could write:

return s"(${v.x}, ${v.y}, ${v.z})"

I am not sure if we should add a special syntax for strings with interpolation (like the s prefix in the example above) or just allow interpolation in every string (and use \$ to write a real dollar sign).

We should also add a syntax for multiline strings, like:

let s = """This is a
           string with
           several lines"""

This thread is open for suggestions and discussion.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.