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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

ScriptRock's Experience with Go, After Porting 30KLOC

8 点作者 zhenjl超过 10 年前

1 comment

fmstephe超过 10 年前
I am not a C++ developer. My understanding was that c++ const was found severely lacking for complex structures? I know that java&#x27;s final is worthless in this scenario. Can anyone elaborate on how effective c++&#x27;s const is for this use? Thx.<p>EDIT:<p>After reading the first three links from a sensible Google search<p><a href="http://duramecho.com/ComputerInformation/WhyHowCppConst.html" rel="nofollow">http:&#x2F;&#x2F;duramecho.com&#x2F;ComputerInformation&#x2F;WhyHowCppConst.html</a> <a href="https://msdn.microsoft.com/en-us/library/145yc477.aspx" rel="nofollow">https:&#x2F;&#x2F;msdn.microsoft.com&#x2F;en-us&#x2F;library&#x2F;145yc477.aspx</a> <a href="http://www.cprogramming.com/tutorial/const_correctness.html" rel="nofollow">http:&#x2F;&#x2F;www.cprogramming.com&#x2F;tutorial&#x2F;const_correctness.html</a><p>I can see that C++ const is very sophisticated. I like it, and I can see that what the author described is well provided for by it - safely sharable objects.<p>But, it is also very clear that const introduces a fairly extreme level of sophistication to the compiler. It isn&#x27;t clear how this sort of feature would interact with interfaces{} etc.