wren-lang / wren

The Wren Programming Language. Wren is a small, fast, class-based concurrent scripting language.
http://wren.io
MIT License
6.86k stars 550 forks source link

String formatting in Wren #873

Open hsdk123 opened 3 years ago

hsdk123 commented 3 years ago

Hi, I was wondering if Wren provides any formatting of strings. Either that be printf like formatting, etc.

ruby0x1 commented 3 years ago

Just string interpolation for now! e.g "string %(wren expression)". (A good minimal string format function would be nice to have in the near future).

ChayimFriedman2 commented 3 years ago

There is a fmt module provided by PureFox48 (https://github.com/NinjasCL-labs/wren-rosetta/blob/main/src/fmt.wren).

hsdk123 commented 3 years ago

fmt looks pretty good, but not having a minimal string format function sounds extremely lacking in terms of a std library.