Deutsch   English   Français   Italiano  
<vsjk4k$24q5m$1@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: Muttley@DastardlyHQ.org
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Wed, 2 Apr 2025 15:12:20 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <vsjk4k$24q5m$1@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>
Injection-Date: Wed, 02 Apr 2025 17:12:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="60d8c282138488f3c9d99b9a203a2d89";
	logging-data="2255030"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/QQ3YIiJ8lIKYxu7O/jlpy"
Cancel-Lock: sha1:0SwljYjlPN/r+f41seX6+4L2WBQ=
Bytes: 1870

On Wed, 2 Apr 2025 11:12:07 -0300
Thiago Adams <thiago.adams@gmail.com> wibbled:
>Em 4/2/2025 11:05 AM, Muttley@DastardlyHQ.org escreveu:
>> So what exactly is better / faster / clearer / safer in C23?
>
>We already had some C23 topics here.
>My list
>
>  - #warning (better)
>  - typeof/auto (better only when strictly necessary)

Auto as per C++ where its used as a substitute for unknown/long winded 
templated types or in range based loops? C doesn't have those so there's no
reason to have it. If you don't know what type you're dealing with in C then
you'll soon be up poo creek.

>  - digit separator (better, safer)

Meh.

>  - binary literal useful

We've had bitfields for years which cover most use cases.

>  - #elifdef, OK not a problem, not complex..
>  - _has_include useful
>  - [[nodiscard]] safer (although I think it could be better defined)
>  - static_assert no param (clear)

Meh.