Sujet : Re: Hex string literals (was Re: C23 thoughts and opinions)
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 18. Jun 2024, 10:39:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240618123940.00007f1a@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Mon, 17 Jun 2024 22:39:00 -0700
Tim Rentsch <
tr.17687@z991.linuxsc.com> wrote:
bart <bc@freeuk.com> writes:
AFAIK nobody uses octal anymore.
There are circumstances where being able to write constants
in octal is useful. It also would be nice to be able to
write constants in base 4 and base 32 (because 5 is half
of 10). I don't have occasion to prefer octal very often
but I'm glad it's there for those times when I do.
Ada/VHDL permits any base from 2 to 16. They didn't go as far up as
32.
I would imagine that reading base 32 number would take time to become
accustomed.
Besides, using I and O as digits is problematic because of visual
similarity to 1 an 0. Using l is problematic both because of visual
similarity to 1 and because of clash with existing use as suffix.