These are chat archives for fmtlib/fmt

13th
Sep 2018
Victor Zverovich
@vitaut
Sep 13 2018 00:48
Hi Gerard!
Thanks for the suggestion. So the difference from existing named arguments API is that you can pass several arguments at once?
Gerard Choinka
@gchoinka
Sep 13 2018 06:52
not exactly, it just removes you from the need to use fmt::arg{<name>, <value>} or <name>_a=<value>, but if i think about it would be also able to have named arguments without fmt::arg or _a just by expecting an even number of arguments and the even arguments are the names for the next following odd argument
Victor Zverovich
@vitaut
Sep 13 2018 14:56
Interesting. My main concern is that the argument and values are mixed in the same list which affects readibility. Maybe something like args{{"name", "World"}, {"number", 42"}} would be better?
It's kind of like constructing a dictionary of named arguments.
Gerard Choinka
@gchoinka
Sep 13 2018 16:18
I think you concern is right, formatting tools would not care about even names and odd values
Victor Zverovich
@vitaut
Sep 13 2018 21:00
So I'm open to pull requests if this can be done in the form args{{"name", "World"}, {"number", 42"} or similar rather than just a single list.