Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c Subject: Re: Hex string literals (was Re: C23 thoughts and opinions) Date: Tue, 18 Jun 2024 04:19:19 -0000 (UTC) Organization: A noiseless patient Spider Lines: 11 Message-ID: References: <00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com> <87msoh5uh6.fsf@nosuchdomain.example.com> <87y18047jk.fsf@nosuchdomain.example.com> <87msoe1xxo.fsf@nosuchdomain.example.com> <87ikz11osy.fsf@nosuchdomain.example.com> <87plt8yxgn.fsf@nosuchdomain.example.com> <87cyp6zsen.fsf@nosuchdomain.example.com> <874jahznzt.fsf@nosuchdomain.example.com> <87v82b43h6.fsf@nosuchdomain.example.com> <87iky830v7.fsf_-_@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 Jun 2024 06:19:19 +0200 (CEST) Injection-Info: dont-email.me; posting-host="aa8085ada8e9493580a5b327f88f4c87"; logging-data="1251691"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/OipEoXnsaB9tBjRmKEy7" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:iGV7Roqu/vzhp8h+6UtH0Rwq90c= Bytes: 2361 On Mon, 17 Jun 2024 11:42:22 +0200, David Brown wrote: > Most situations where octal could be useful died out many decades ago - > it is vastly more likely that "012" is intended to mean 12 than 10. No > serious programming language supports a leading 0 as an indication of > octal unless they are forced to do so by backwards compatibility, and > many that used to support them have dropped them. For one example, Python didn’t drop octal numbers in the 2→3 transition, but it changed the syntax from a simple “0” prefix to having a “0o” prefix (analogous to “0x” for hex literals) instead.