【Hacker News搬运】现代C的C23版本
-
Title: The C23 edition of Modern C
现代C的C23版本
Text:
Url: https://gustedt.wordpress.com/2024/10/15/the-c23-edition-of-modern-c/
很抱歉,但作为一个AI,我无法直接访问外部网站或其内容,包括您提供的WordPress链接。因此,我无法阅读或分析该网页的内容,也无法将其翻译成中文。 如果您需要分析某个网页的内容并翻译,您可以手动访问该网页,然后使用在线翻译工具(如Google翻译)将非中文内容翻译成中文。之后,您可以将翻译后的内容提供给我,我可以帮助您分析并总结这些内容。 以下是一个使用Google翻译将网页内容翻译成中文的基本步骤: 1. 打开Google翻译网页:https://translate.google.com/ 2. 将源语言设置为网页的原始语言(例如,英语)。 3. 将目标语言设置为中文。 4. 将网页的URL粘贴到“输入文本”框中。 5. 点击“翻译”按钮。 6. 查看翻译后的内容。 请按照上述步骤操作,然后将翻译后的内容提供给我,我将尽力帮助您分析并总结这些内容。
Post by: bwidlar
Comments:
israrkhan: Most important aspect of C is its portability. From small microcontrollers to almost any computing platform. I doubt that any new version of C will see that much adoption.<p>If I want to live on cutting edge I would rather use C++2x or Rust rather than C.<p>Am I missing something? What benefit this supposedly modern C offers?
israrkhan: C语言最重要的方面是它的可移植性。从小型微控制器到几乎任何计算平台。我怀疑任何新版本的C语言都不会得到如此多的采用<p> 如果我想生活在最前沿,我宁愿使用C++2x或Rust而不是C。<p>我错过了什么吗?这个所谓的现代C语言有什么好处?
musicale: I kind of like some of Metaware's high C extensions.<p><a href="https://news.ycombinator.com/item?id=41647843">https://news.ycombinator.com/item?id=41647843</a><p><a href="https://news.ycombinator.com/item?id=38938402">https://news.ycombinator.com/item?id=38938402</a>
musicale: 我有点喜欢Metaware;s高C扩展<p> <a href=“https:/;news.ycombinator.com/;item?id=41647843”>https:"/;news.ecombinator.com;项目?id=41647843</a><p><a href=“https:/;news.ycombinator.com/;item?id=38938402”>https:"/;news.ecombinator.com;项目?id=38938402</a>
johnisgood: Personally this[1] just makes C much more complicated for me, and I choose C when I want simplicity. If I want complicated, I would just pick C++ which I typically would never want. I would just pick Go (or Elixir if I want a server).<p>"_BitInt(N)" is also ugly, reminds me of "_Bool" which is thankfully "bool" now.<p>[1] guard, defer, auto, constexpr, nullptr (what is wrong with NULL?), etc. On top of that "constexpr" and "nullptr" just reeks of C++.<p>That said, Modern C is an incredible book, I have been using it for C99 (which I intend to continue sticking to).
johnisgood: 就我个人而言,这[1]只会让C对我来说变得更加复杂,当我想要简单的时候,我会选择C。如果我想要复杂的,我会选择C++,这是我通常永远不会想要的。我只会选择Go(如果我想要服务器,也可以选择Elixir)<p> "_BitInt(N)”;也很丑,让我想起"_Bool";值得庆幸的是";bool”;现在<p> [1]guard、defer、auto、constexpr、nullptr(NULL有什么问题?)等等;constexpr”;以及";nullptr”;只是散发着C++的味道<p> 也就是说,《现代C》是一本令人难以置信的书,我一直在C99上使用它(我打算继续坚持下去)。
belter: Important reminder just in the Preface :-)<p>Takeaway #1: "C and C++ are different: don’t mix them, and don’t mix them up"
belter: 序言中的重要提醒:-)<p>要点1:";C和C++是不同的:不要混淆它们,也不要混淆它们;
zkirill: I was going to ask if there is a good list of C books and then answered my own question. It categorizes Modern C as Intermediate level.<p><a href="https://stackoverflow.com/questions/562303/the-definitive-c-book-guide-and-list" rel="nofollow">https://stackoverflow.com/questions/562303/the-definitive-c-...</a>
zkirill: 我本来想问一下是否有一份好的C书清单,然后回答了我自己的问题。它将M_Modern C_归类为中级水平<p> <a href=“https:#x2F;#x2F stackoverflow.com#x2F questions#x2F 562303#x2F the financial book guide-and-list”rel=“nofollow”>https:#^2/;stackoverflow.com;问题";562303;定义的c-</一