C++ Logo


Advanced search

Re: [isocpp-lib-ext] LEWG(I) (Bi)Weekly review - P2510R0: Formatting pointers

From: Zhihao Yuan <zy_at_[hidden]>
Date: Tue, 15 Feb 2022 23:34:44 +0000
On Tuesday, February 15th, 2022 at 12:49 PM, Tomasz KamiƄski via Lib-Ext <lib-ext_at_[hidden]> wrote:

> For the '0' and 'P' features, I am not opposed, but also not convinced to the usability of them.

I think introducing any "feature"
that we already have
(reinterpret_cast<uiniptr_t> + x)
by occupying severely precious
mini-language grammar in the
standard is a waste of design
space. GCC and Clang have
been issuing warnings on %08p
for a long time. Which means,
if we want to flip the impression
of "%p has no flags," the
outcome must be useful enough
to teach. And I believe more
useful things can be done on
0 + p or P, more useful than
saving some keystrokes.

Zhihao Yuan, ID lichray
The best way to predict the future is to invent it.

Received on 2022-02-15 23:34:47