You need to hard-code the maximum number of arguments and then write a separate macro for each different number of arguments.
It's not you that need to do. It's the library maintainers that need to do.
I will insert two copies of the same word and hopefully it'll be clearer for you.
"It's not you that need to do [that]. It's the library maintainers that need to do [that]."
Better?
"It" would work just as well with shakier grammar.
"The work of writing those macros" would be quite good, but too wordy for my stunt.
Point is, this is a trivially good-faith response with the application of a very small amount of deductive reasoning and reading comprehension, which makes it feel like you're the one who's not responding in good faith.
I will insert two copies of the same word and hopefully it'll be clearer for you.
Here, I’ll take a similar approach to my original comment.
You (the author of code exposing a variadic macro) need to hard-code the maximum number of arguments and then write a separate macro for each different number of arguments.
I thought it was pretty trivial to figure this out, but use of the general ‘you’ does trip up some non-native speakers.
But you're using it as an argument against being a client of code exposing a variadic macro. I agree, writing them is a pain in the ass, but that's not a reason to avoid using fmt.
View all comments
Show parent comment
3
u/za419 Jun 18 '26
I will insert two copies of the same word and hopefully it'll be clearer for you.
"It's not you that need to do [that]. It's the library maintainers that need to do [that]."
Better?
"It" would work just as well with shakier grammar.
"The work of writing those macros" would be quite good, but too wordy for my stunt.
Point is, this is a trivially good-faith response with the application of a very small amount of deductive reasoning and reading comprehension, which makes it feel like you're the one who's not responding in good faith.