search for: fastformat

Displaying 3 results from an estimated 3 matches for "fastformat".

2016 Oct 12
2
RFC: General purpose type-safe formatting library
...<llvm-dev at lists.llvm.org> wrote: > > I'm generally favorable on the core idea of having a type-safe and friendly format-string-like formatting utility I’m also generally in favour, but I wonder what the key motivations for designing our own, rather than importing something like FastFormat, fmtlib, or one of the other tried-and-tested C++ typesafe I/O libraries is. Has someone done an analysis of why these designs are a bad fit for LLVM, or are we just reinventing the wheel because we feel like it? David
2016 Oct 12
2
RFC: General purpose type-safe formatting library
...gt; > > > > > I'm generally favorable on the core idea of having a type-safe and friendly format-string-like formatting utility > > > > I’m also generally in favour, but I wonder what the key motivations for designing our own, rather than importing something like FastFormat, fmtlib, or one of the other tried-and-tested C++ typesafe I/O libraries is. Has someone done an analysis of why these designs are a bad fit for LLVM, or are we just reinventing the wheel because we feel like it? > > (this keeps coming up in various contexts, so a somewhat longer/in-depth p...
2016 Oct 12
15
RFC: General purpose type-safe formatting library
A while back llvm::format() was introduced that made it possible to combine printf-style formatting with llvm streams. However, this still comes with all the risks and pitfalls of printf. Everyone is no-doubt familiar with these problems, but here are just a few anyway: 1. *Not type-safe.* Not all compilers warn when you mess up the format specifier. And when you're writing your own