Deutsch English Français Italiano |
<v3f7qg$2q0t7$3@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!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: C23 thoughts and opinions Date: Sat, 1 Jun 2024 15:30:56 +0200 Organization: A noiseless patient Spider Lines: 52 Message-ID: <v3f7qg$2q0t7$3@dont-email.me> References: <v2l828$18v7f$1@dont-email.me> <v2o57g$1t5p4$1@raubtier-asyl.eternal-september.org> <v3dkgh$2e0me$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 01 Jun 2024 15:30:57 +0200 (CEST) Injection-Info: dont-email.me; posting-host="bccbf00d5a93327e62e7d3de82461170"; logging-data="2950055"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18F1ICZrJM2HODgTB/XtbaOafZZ9KavqcA=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:M6pIssn6aDMQYbFjnr8mDuHEooM= Content-Language: en-GB In-Reply-To: <v3dkgh$2e0me$1@dont-email.me> Bytes: 3083 On 01/06/2024 00:55, Lynn McGuire wrote: > 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. These days, I believe engine management code is more likely to be 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 > } > Hey! He's copied from me! Pretty much /every/ embedded system has that loop at its heart - either once (for bare metal), or in the RTOS and also once per thread.