4 ms·
I think this is one scenario where C++ type-templated string formatters could shine. Especially if you extended them to indicate assumptions about the values a
by CoastalCoder 2y ago
I think this is one scenario where C++ type-templated string formatters could shine.
Especially if you extended them to indicate assumptions about the values at compile time. E.g., possible ranges for integers, whether or not a floating point value can have certain special values, etc.
- vlovich123 2y agoYou’d be surprised. I’m pretty sure std::format is templated. That doesn’t mean that it’s still easy to convince the compiler to delete that code.