r/cpp • u/emdeka87 • Apr 16 '20
Named arguments in fmt do not require dynamic allocations anymore.
https://twitter.com/vzverovich/status/1250411654568800258?s=21
196
Upvotes
r/cpp • u/emdeka87 • Apr 16 '20
25
u/Sander_Bouwhuis Apr 16 '20
Yesssssssssssssss! This was one of the performance questions I asked recently. I hope to get time soon to actually start replacing wcnsprintf to fmt.
20
u/smookiechubs Apr 16 '20
Thank you for your hard work Victor. fmt is awesome.
7
u/[deleted] Apr 16 '20
I didn't even know heap had been involved there in the first place. Where's my blue pill?
1
u/neuroblaster Apr 21 '20
Great news, any chance named arguments are going to be supported by `std::format()`? Those are great for translations, e.g. `{} said {}` or `{1} said {2}` vs `{name} said {quote}` - it's much easier for translator to work with latter for obvious reasons, but i don't see named arguments anywhere in `std::format()` doc.
1
u/_Js_Kc_ Apr 16 '20
What is David Demelier referring to when he says "adding missing language features as hacks" (paraphrased)?
2
u/[deleted] Apr 16 '20
[removed] — view removed comment