4 ms·
Some people are noticing that println is very new. But there already is https://github.com/fmtlib/fmt https://github.com/fmtlib/fmt and it has been there quite
by cjfd 2y ago
Some people are noticing that println is very new. But there already is https://github.com/fmtlib/fmt https://github.com/fmtlib/fmt and it has been there quite a long time.
- Philpax 2y agoThat would require introducing a dependency, which is a digression from the point of the article and would complicate reproduction for the reader.
- bangaladore 2y agoI can assure you that using a new language is a substantially greater task than introducing a dependency (or using -std=c++23). So you might as well show off the latest and greatest for all the competitors.
- account42 2y agoUsing random libraries in example code isn't good practice though. Still, even (C) printf would have been better than the iostreams monstrosity.
- tovej 2y agofmt is not a random library, it's the inspiration and reference implementation for std::format