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.

The Evolution of Go

20 pointsby beliualmost 10 years ago

4 comments

coldteaalmost 10 years ago
&gt;<i>Generics is the single biggest language feature absent in Go. It’s often missed by newcomers to Go. But it’s more of a type-system mechanism. It’s unclear if it’s an essential language feature.</i><p>Oh, it&#x27;s clear by now. Though &quot;essential&quot; is a weasel word -- in a way nothing is essential in the sense you can do it all with assembler too.<p>&gt;<i>Generics are incredibly complex in both semantics and implementation. There are considerable trade-offs to consider, such as do you want a larger binary vs. slower binary vs. larger source code.</i><p>Unless I use them, I get none of those downsides. And when I need them, I now have to implement support for my types manually, which results in larger source code anyway.<p>And &quot;larger source code&quot; hasn&#x27;t been a problem since 1980.<p>&gt;<i>Language features without competition: goroutines, interfaces, defer (now in Swift)</i><p>Those have been around in several other languages... Hardly &quot;without competition&quot;.<p>&gt;<i>Tools without competition: fast compiler</i><p>It&#x27;s fast because it&#x27;s not doing much. And there are several compilers that are fast too.
评论 #9862826 未加载
panamafrankalmost 10 years ago
The thing about Go is that there isn&#x27;t all that much to talk about, any mention of it induces a &quot;channels are awesome&quot; comment or a &quot;there&#x27;s no generics :&#x27;(&quot; conversational nadir.<p>I think eventually it&#x27;ll be complete, with only the occasional maintenance patch.
vanessa98almost 10 years ago
He had me at &quot;It’s unclear if it’s [generics] an essential language feature&quot;
评论 #9861430 未加载
throwaway999666almost 10 years ago
&gt; As a graduate student, he studied with Niklaus Sweet, creator of Pascal.<p>Niklaus <i>Sweet</i>, fucking seriously?
评论 #9867939 未加载
评论 #9862785 未加载