String format function
Shovinus opened this issue · 3 comments
Issue type:
- ➕ Feature request
Short description:
Allow the building of string with placeholders and variables:
"Hello {0}, you have {1} new messages."
Then pass in variables.
If it could accept multiple variable cards that would be nice.
Should be trivial to implement with a fixed number of variables, but a bit more tricky with a variable number of variables (but a list could work here).
If considered to make a .NET style string format operator
here is the .NET string class and format function
https://github.com/microsoft/referencesource/blob/master/mscorlib/system/string.cs#L2960
Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework - microsoft/referencesource