TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Defective C++

14 点作者 dsplatonov将近 11 年前

4 条评论

Pacabel将近 11 年前
It&#x27;s pretty well known that C++ suffers from a variety of problems. Many of them have been known about for some time. Despite this, nobody has been able to produce a truly viable alternative.<p>There have been some encouraging developments, of course. But they&#x27;ve had their own drawbacks that are often worse, in practice, than the problems of C++.<p>D is an example of this. A lot of new and existing C++ code probably could be written in D instead. But D lacks the widespread adoption and support that C++ offers. This translates into there being fewer third party libraries available, which increases the burden on programmers to an extent that&#x27;s usually unjustifiable during commercial development And this, in turn, helps prevent the adoption of D.<p>Rust is another example. It theoretically sounds like it could be a replacement for C++, but that&#x27;s only true in the far future. The language and its standard libraries have yet to show any real signs of stability. We&#x27;ve been hearing that there may be a 1.0 release at the end of 2014, but time is quickly running out on this. Even then, it will merely be where D is at that point. While there may be a fair number of Rust libraries in existence at this point, many of them have become broken due to language or standard library changes, many are woefully incomplete, and many are totally abandoned.<p>Then there are Java, C#, Go and others which claim to be successors or potential replacements, and perhaps this is true in a very limited subset of cases. But the remaining situations where they aren&#x27;t suitable are large in number and quite critical.<p>Furthermore, we are continually seeing C++ adapt and evolve. It&#x27;s getting new features and functionality that these competitors are offering, while still usually giving far more freedom and control to programmers, far better performance, far better portability, far greater practicality, and continued use for serious new software projects. These factors combine to make it an even more difficult situation for potential C++ replacements. They just may not bring enough to the table to warrant replacing C++ for a majority of its users or potential users.
评论 #7961003 未加载
评论 #7961100 未加载
loup-vaillant将近 11 年前
This page is about C++98. C++11 and 14, while making some important things easier, have their own set of problems.<p>Which is why Yossi Kreinin called for help about updating the FQA for C++1x and beyond. As he no longer works with C++, both his expertise and the time he can waste on this language are dwindling. <a href="http://yosefk.com/blog/c11-fqa-anyone.html" rel="nofollow">http:&#x2F;&#x2F;yosefk.com&#x2F;blog&#x2F;c11-fqa-anyone.html</a>
评论 #7961023 未加载
shin_lao将近 11 年前
This FQA is often posted and you should know it&#x27;s subjective and outdated. You can read more about it here:<p><a href="http://stackoverflow.com/questions/3171647/errors-in-c-fqa" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;3171647&#x2F;errors-in-c-fqa</a>
评论 #7961049 未加载
silmar将近 11 年前
While c++ has its share of annoyances, I fail to see the relevance of this text, even more so in 2014, why do You repost it?
评论 #7961068 未加载