原文
| ||||||||||||||||||
| ||||||||||||||||||
![]() |
原始链接: https://news.ycombinator.com/item?id=43449669
Hacker News 上的一个帖子讨论了一篇关于 C++26 高级技巧的博客文章。评论者们对代码表示困惑,称其像外星语言一样,感觉更像是一种“人工语言”(conlang),而不是标准 C++。评论中特别提到了“auto 模板”、“std::meta”、“[:Member:]”、“nonstatic_data_members_of”、“std::is_void_v”以及复杂的 lambda 表达式,认为这些是导致代码难以理解的原因。一位评论者特别指出“using ret_t = first_non_void
| ||||||||||||||||||
| ||||||||||||||||||
![]() |
It feels like I'm looking at a conlang instead of C++.
Not hating the author, I'm sure they know their stuff and this is useful to someone. Just looking at this from the perspective of an ordinary C++ programmer, it looks very alien.
reply