Are there any standard library facilities to do string interpolation/formatting at runtime? I\'d like the formatting to behave exactly the same as the macro based s\"s
s\"s
A. As of Scala 2.10.3, you can't use StringContext.f unless you know the number of arguments at compile time since the .f method is a macro.
StringContext.f
.f
B. Use String.format, just like you would in the good ol' days of Java.
String.format