Finding in the API doc for String::formatted::
I don’t like this method. I don’t use it myself, and I recommend avoiding it and using the operator<< methods or pretty much anything else instead.
using String formatted:
String coordinates = String::formatted("Coordinates: %d x %d", x, y);
String coordinates = "Coordinates: "; operator<<(coordinates, x); operator<<(coordinates, " x "); operator<<(coordinates, y);
Can the operator<< method also be simplified to a one-liner ?