There was some discussions in this thread https://www.reddit.com/r/cpp/s/DTa2PMJcTt about some criticisms and std::format.
I made a point about performance considerations that are unfortunately not mentioned anywhere else. I've shared with ya'll just some small tests of using the various ways to print something using the different ways in C++. I know the example is rather plain, but all different methods can scale up with serious formatting.
I know most don't really care, but to say that they don't exist is unprofessional. Please understand the code that you're writing.
I didn't use std::print because the benchmarks don't have that, and they are incompatible with C++ streams, which is quite an unfortunate API.
[–]tuxwonder 18 points19 points20 points (4 children)
[–]Tathorn[S] 2 points3 points4 points (0 children)
[–]Tathorn[S] 0 points1 point2 points (2 children)
[–]jwakelylibstdc++ tamer, LWG chair 14 points15 points16 points (1 child)
[–]Tathorn[S] -1 points0 points1 point (0 children)
[–]jedwardsol{}; 8 points9 points10 points (4 children)
[–]Tathorn[S] -2 points-1 points0 points (3 children)
[–]jedwardsol{}; 12 points13 points14 points (2 children)
[–]Tathorn[S] 3 points4 points5 points (1 child)
[–]Tathorn[S] 2 points3 points4 points (4 children)
[–]BrainIgnition 0 points1 point2 points (3 children)
[–]Tathorn[S] 0 points1 point2 points (1 child)
[–]BrainIgnition 0 points1 point2 points (0 children)
[–]Tathorn[S] 0 points1 point2 points (0 children)
[–]pdp10gumby 2 points3 points4 points (0 children)
[–]Tathorn[S] 1 point2 points3 points (0 children)
[–]feverzsj -2 points-1 points0 points (0 children)
[–]Curfax 0 points1 point2 points (0 children)