3 ms·
I am not necessarily opposing string interpolation as a language feature, but I have an idea how could it work as a library. Implement string suffix and overloa
by hawski 7y ago
I am not necessarily opposing string interpolation as a language feature, but I have an idea how could it work as a library. Implement string suffix and overload comma operator or overload reminder operator. It would look like this:
"Hello {} {}!"i, 2, "worlds"
Or with reminder operator as in Python:
"Hello {} {}!"istr % istr(2, "worlds")
But yeah, enough of this.