Skip to content

feat: string formatting #253

@aitchFactor

Description

@aitchFactor

Something like Python fstring or Rust ! which compiles to a series of join statements. For example:
warn (!"Out of bounds: ({xpos}, {ypos})");

Which would compile to:

Image

Currently this has to be achieved by:
warn ("Out of bounds: (" & xpos & ", " & ypos & ")");
This isn't too bad but the unwieldiness stacks up if you are writing many lines like this, such as for debugging.
Having some string formatting syntax would be of great assistance.

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