C++ Logo

liaison

Advanced search

[isocpp-wg14/wg21-liaison] fixed width types

From: Pynix Wnag <pynix.wang_at_[hidden]>
Date: Sun, 28 Jul 2024 17:08:25 +0800
any plan to make stdint types into language and compiler, modern languages
use width in type names, int8, int16, int32,
int64,uint8,uint16,uint32,uint64.
when I learn c language first time, I must try to remember short long bit
width.
why not use types with bit width?
no one want to remember usb version names, full speed, high speed,ultra
speed, what we want is usb 5g, usb10g, usb20g, usb40g.

I always ask myself, how long “long” is, how short “short” is.
if we need 128 bit, how we call it, long long? double long?

Received on 2024-07-28 09:08:37