WebKit has too many different ways to stringify things. Here are the ones I have found so far:
WTF::makeString (part of WTF’s StringConcatenate)
WTF::LogArgument (part of WTF::Logger)
WTF::PrintStream dump functions
I plan to remove WTF::ValueToString first, changing the only client (POD trees) to use TextStream instead. I would welcome other ideas for how to get rid of this redundancy.
Seems like we should remove PrintStream and replace it with TextStream. One way to do it is to make PrintStream use TextStream and then remove it a bit at a time.
TextStream has some anomalies in how it serializes floating point numbers, always using fixed position with two decimal places.