Deutsch English Français Italiano |
<vslf1v$28l7$4@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Thu, 3 Apr 2025 09:57:51 +0200 Organization: A noiseless patient Spider Lines: 39 Message-ID: <vslf1v$28l7$4@dont-email.me> References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me> <vsjg6t$20pdb$1@dont-email.me> <vsjgjn$1v1n4$1@dont-email.me> <vsjk4k$24q5m$1@dont-email.me> <vsjlcp$230a5$1@dont-email.me> <vsjmdl$277bk$1@dont-email.me> <VsdHP.1828827$TBhc.1078002@fx16.iad> <vskjlo$34st8$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 03 Apr 2025 09:57:52 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d65639e364606db0746acbec737df138"; logging-data="74407"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182jA0Sr6M6SJ8BHDHi3OpYh3ODQex5vPk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:gB9SB3d+RNhCRyAX/yJxLVOr+0U= Content-Language: en-GB In-Reply-To: <vskjlo$34st8$1@dont-email.me> Bytes: 2744 On 03/04/2025 02:10, bart wrote: > On 02/04/2025 17:20, Scott Lurndal wrote: >> Muttley@dastardlyhq.com writes: >>> On Wed, 2 Apr 2025 16:33:46 +0100 >>> bart <bc@freeuk.com> gabbled: >>>> On 02/04/2025 16:12, Muttley@DastardlyHQ.org wrote: >>>>> Meh. >>>> >>>> What's the problem with it? Here, tell me at a glance the magnitude of >>>> this number: >>>> >>>> 10000000000 >>> >>> And how often do you hard code values that large into a program? Almost >>> never I imagine unless its some hex value to set flags in a word. >> >> Every day, several times a day. 16 hex digit constants are very >> common in my work. The digit separator really helps with readability, >> although I would have preferred '_' over "'". > > Oh, I thought C23 used '_', since Python uses that. I prefer single > quote as that is not shifted on my keyboard. (My language projects just > allow both!) C++ uses single quotes - it is much more natural for C to copy C++ than to copy Python. > > That fact that it is not widespread is a problem however, so I can't use > either without restricting the compilers that can be used. > > For example gcc 14.x on Windows accepts it with -std=c23 only; gcc on > WSL doesn't; tcc doesn't. > Surprisingly enough, this new C23 feature is only available when using C23 or later.