C++ Logo

std-proposals

Advanced search

Re: [std-proposals] New printf/scanf modifiers

From: Bjorn Reese <breese_at_[hidden]>
Date: Tue, 31 Jan 2023 20:07:42 +0100
On 1/31/23 19:51, Jonathan Wakely via Std-Proposals wrote:
>
>
> On Tue, 31 Jan 2023 at 18:48, Jason McKesson via Std-Proposals
> <std-proposals_at_[hidden] <mailto:std-proposals_at_[hidden]>>
> wrote:

> Why do we want to improve type-unsafe tools like `printf` when we have
> type-safe tools like `std::format`? We don't quite have a scanf
> equivalent yet, but it'd be better to work on that.
>
>
> And any changes to printf would have to go through the C committee
> (WG14) not the C++ committee.

It is possible to build a type-safe extension without the involvement
of the C committee:

   https://github.com/rokudev/rostd/blob/main/doc/printx.adoc
   https://www.youtube.com/watch?v=9dg7dMRjyxI

Received on 2023-01-31 19:07:45