Skip to content

string formatting #116

@MarkusFreitag

Description

@MarkusFreitag

Is your feature request related to a problem? Please describe.
Currently the only way to build a formatted string is by adding them together using the + operator.

Describe the solution you'd like
Having some sort of format function that receives a string with placeholders as well as arguments that will be filled into it.

Additional context
I've written a short example poc in rocket-lang.
https://play.rocket-lang.org/?share=ZGVmIEZvcm1hdChhLCBiKQogIGZvcmVhY2ggaWR4LCBpdGVtIGluIGIKICAgIHZhbCA9ICIiCiAgICBpZiAoaXRlbS50eXBlKCkgPT0gIlNUUklORyIpCiAgICAgIHZhbCA9IGl0ZW0KICAgIGVsc2UKICAgICAgdmFsID0gaXRlbS5wbHpfcygpCiAgICBlbmQKICAgIGEgPSBhLnJlcGxhY2UoInsiK2lkeC5wbHpfcygpKyJ9IiwgdmFsKQogIGVuZAogIHJldHVybiBhCmVuZAoKcHV0cyhGb3JtYXQoInNlY29uZD17MX0gZmlyc3Q9ezB9IHRoaXJkPXsyfSIsIFsxLDIsM10pKQo%3D

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions