TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ScriptRock's Experience with Go, After Porting 30KLOC

8 pointsby zhenjlover 10 years ago

1 comment

fmstepheover 10 years ago
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.