(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43492211

Hacker News 上的一篇帖子讨论了“现代C语言 (inria.fr)”,引发了关于C语言发展方向的辩论。一些评论员对`auto`和`constexpr`等潜在的新特性表示兴奋。另一些人则批评这种趋势,认为“现代C语言”试图模仿C++,但却并没有完全采用其核心概念,而是选择了诸如`_Generic`之类的不太优雅的解决方案。一些人欣赏现有的“现代C语言”资源,例如Jens Gustedt的书,但更倾向于坚持使用C99等较旧的C语言标准。帖子里分享了INRIA文档的PDF下载链接。讨论中还出现了轻松愉快的交流,引用了David Bowie的歌曲“Modern Love”,用户们互相询问这首歌是否能让你准时到达教堂,以及其他歌词。

相关文章
  • 现代C 2025-03-27
  • (评论) 2025-03-14
  • (评论) 2025-03-19
  • (评论) 2025-03-17
  • (评论) 2023-11-29

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Modern C (inria.fr)
    58 points by ibobev 39 minutes ago | hide | past | favorite | 11 comments












    At this rate, they may just switch to C++ mode.


    It won't work, modern C is all about being C++ without classes and templates, while coming up with worse approaches (_Generic), apparently.

    Now better ways of doing strings and arrays, no need for something as modern as 1976's PL/I way of doing them.



    I love Modern C by Jens Gustedt. I will stick to the older version without C23, as I prefer C99, but pretty sure this version is great, too. I learnt a lot from reading this book.


    The INRIA page links to a downloadable PDF version here:

    https://inria.hal.science/hal-02383654v2/document



    Does it get me to the church on time?


    Is this a reference?


    Yes, it's a reference to the David Bowie song "Modern Love," whose refrain includes the line, "Modern love gets me to the church on time."


    lyric from Bowie's Modern Love.


    It'll get you up the hill .. backwards.


    Does it walk beside me?






    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com