calebzulawski
Re:Pprint: Pretty Printer for Modern C++
on Monday April 29, 2019 @06:01PM (#19783004)
Thanks! It really makes writing printers very easy.
Re:Pprint: Pretty Printer for Modern C++
on Monday April 29, 2019 @03:06PM (#19781555)
I also recently created a pretty printer library (https://github.com/calebzulawski/hippo).
In some ways they are similar, though I felt it was valuable to avoid using ostreams at all, and store indentation levels separately from the printed string. Additionally, I think reflection macros are especially helpful for creating printers for user-defined types.