Open pcperini opened 12 years ago
What about string interpolation?
formattedString := 'Hello #{'World'}!'
string interpolation is better than a format string IMO
might be a bit weird syntactically though. i like how python does it, so maybe something like:
world := 'World'
formattedString := 'Hello %world' // automatic interpolation from variables
// or
formattedString := 'Hello %world': {'world': world} // explicit interpolation from key/val pairs
Feature request to circumvent
(String stringWithFormat: 'Hello %@%s', 'World', "!")
:Declaring strings from formats should be as easy as: