Date: Tue, 8 Jul 2025 01:18:50 +0200
On Mon, Jul 07, 2025 at 08:42:10AM +0200, David Brown via Std-Proposals wrote:
>
> Having a template called "u" is worse than identifiers like "u8" - remember,
> templates are identifiers too, and clash in the same way. Hugely better
> would be "uint<8>" or "uint_t<8>", although there the "_t" suffix is
> redundant.
I think unit<N> is a really bad choice - what would be the name of the
signed counterpart? sint<N>?
int<N> would require either compiler magic or horrible changes to the parser.
/MF
>
> Having a template called "u" is worse than identifiers like "u8" - remember,
> templates are identifiers too, and clash in the same way. Hugely better
> would be "uint<8>" or "uint_t<8>", although there the "_t" suffix is
> redundant.
I think unit<N> is a really bad choice - what would be the name of the
signed counterpart? sint<N>?
int<N> would require either compiler magic or horrible changes to the parser.
/MF
Received on 2025-07-07 23:18:56