basil
basil copied to clipboard
String formatting
Basil should have some way to easily format strings. Here are a couple syntax proposals.
The percent symbol could be swapped out for something like # or $.
("hello %0 %1" format "world" true)-> yields"hello world true"`hello %{"world"} %{true}`-> yields"hello world true"
Hm, I'd prefer as much compatibility with existing string formatting & interpolation solutions (beginning with printf from the C standard through V up to e.g. Python).