Re: C23 thoughts and opinions

Liste des GroupesRevenir à cl c 
Sujet : Re: C23 thoughts and opinions
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.c
Date : 31. May 2024, 23:55:13
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3dkgh$2e0me$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 5/23/2024 2:25 PM, Bonita Montero wrote:
Am 22.05.2024 um 18:55 schrieb David Brown:
In an attempt to bring some topicality to the group, has anyone started using, or considering, C23 ?  There's quite a lot of change in it, especially compared to the minor changes in C17.
>
<https://open-std.org/JTC1/SC22/WG14/www/docs/n3220.pdf>
<https://en.wikipedia.org/wiki/C23_(C_standard_revision)>
<https://en.cppreference.com/w/c/23>
>
I like that it tidies up a lot of old stuff - it is neater to have things like "bool", "static_assert", etc., as part of the language rather than needing a half-dozen includes for such basic stuff.
>
I like that it standardises a several useful extensions that have been in gcc and clang (and possibly other compilers) for many years.
>
I'm not sure it will make a big difference to my own programming - when I want "typeof" or "chk_add()", I already use them in gcc.  But for people restricted to standard C, there's more new to enjoy.  And I prefer to use standard syntax when possible.
>
"constexpr" is something I think I will find helpful, in at least some circumstances.
>
 I ask myself what the point is in further developing a language
like this that can actually no longer be saved.
There is way more code written in C than C++.  For instance, just about all real time systems such as device and engine management are written in C.
One of my friends writes the device code for a NAS manufacturer.  The code starts off with:
    while (1)
    {
       ...  a bunch of code
    }
Lynn

Date Sujet#  Auteur
31 May 24 * Re: C23 thoughts and opinions20Lynn McGuire
1 Jun 24 +- Re: C23 thoughts and opinions1David Brown
2 Jun 24 `* Re: C23 thoughts and opinions18Lawrence D'Oliveiro
2 Jun 24  +- Re: C23 thoughts and opinions1Keith Thompson
2 Jun 24  `* Re: C23 thoughts and opinions16Kenny McCormack
2 Jun 24   `* Re: C23 thoughts and opinions15Lew Pitcher
2 Jun 24    +* Re: C23 thoughts and opinions13Kaz Kylheku
3 Jun 24    i+- Re: C23 thoughts and opinions1Michael S
3 Jun 24    i+* Re: C23 thoughts and opinions5Tim Rentsch
3 Jun 24    ii`* Re: C23 thoughts and opinions4Chris M. Thomasson
3 Jun 24    ii `* Re: C23 thoughts and opinions3Kenny McCormack
4 Jun 24    ii  `* Re: C23 thoughts and opinions2David Brown
4 Jun 24    ii   `- Re: C23 thoughts and opinions1Chris M. Thomasson
3 Jun 24    i`* Re: C23 thoughts and opinions6bart
4 Jun 24    i +* Re: C23 thoughts and opinions2Keith Thompson
4 Jun 24    i i`- Re: C23 thoughts and opinions1David Brown
4 Jun 24    i +* Re: C23 thoughts and opinions2Lawrence D'Oliveiro
4 Jun 24    i i`- Re: C23 thoughts and opinions1David Brown
4 Jun 24    i `- Re: C23 thoughts and opinions1Kaz Kylheku
3 Jun 24    `- Re: C23 thoughts and opinions1Tim Rentsch

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal