Date: Mon, 13 Mar 2023 14:15:29 +0200
> 1. Not practical to rewrite legacy C/C++ code containing a zillion
printf statements.
https://github.com/mikecrowe/clang-tidy-fmt this can convert printf() calls
and format strings to fmt::print()
On Mon, Mar 13, 2023 at 1:06 PM Jonathan Wakely via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
>
> On Mon, 13 Mar 2023 at 05:46, Thiago Macieira via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>> On Sunday, 12 March 2023 22:11:38 PDT Zhihao Yuan via Std-Proposals wrote:
>> > Sound feasible. It could be done by introducing
>> > a special form _Deduce_format_string("foo {} {}", a, b)
>>
>> That would be a fair proposal to the C standard.
>>
>> The C++ standard would be uninterested in this proposal, though, because
>> we
>> *already* *have* it. It's just got a different function name,
>> std::print().
>>
>>
> I think we need a a FAQ entry explaining why WG21 will not entertain
> changes to printf.
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
printf statements.
https://github.com/mikecrowe/clang-tidy-fmt this can convert printf() calls
and format strings to fmt::print()
On Mon, Mar 13, 2023 at 1:06 PM Jonathan Wakely via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
>
> On Mon, 13 Mar 2023 at 05:46, Thiago Macieira via Std-Proposals <
> std-proposals_at_[hidden]> wrote:
>
>> On Sunday, 12 March 2023 22:11:38 PDT Zhihao Yuan via Std-Proposals wrote:
>> > Sound feasible. It could be done by introducing
>> > a special form _Deduce_format_string("foo {} {}", a, b)
>>
>> That would be a fair proposal to the C standard.
>>
>> The C++ standard would be uninterested in this proposal, though, because
>> we
>> *already* *have* it. It's just got a different function name,
>> std::print().
>>
>>
> I think we need a a FAQ entry explaining why WG21 will not entertain
> changes to printf.
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>
-- Regards, Oleksandr Koval.
Received on 2023-03-13 12:15:43