Y
Hacker News
new
|
ask
|
show
|
jobs
by
khazhoux
1124 days ago
That's perfect -- as easy to write and to read as printf. I feel like an idiot for not using it all these years.
Edit: Oh, it's in
C++23
standard.
Only took them 38 years!
;-)
1 comments
peterashford
1123 days ago
Agreed with you on both counts - cout was an abomination and that std::println looks great (I'd never seen it before, either)
link
LaLaLand122
1123 days ago
I doubt it's yet implemented in any standard library. But it has been in the fmt namespace for close to a decade:
https://fmt.dev/
. I do use it in a C++11-only codebase.
link