News for hackers. Stuff that matters.
Re:Half a million lines of Go by kortex on Sunday May 16, 2021 @11:27PM (#27179806)
It feels like Option types could be done quite easily - basically slices with a hardcoded capacity of 1. Could compile down to a pointer type. But it would make linting way easier. Of course, the real power of Option comes from Map.

Give Go a map and option and I'll be a happy gopher.

Re:Half a million lines of Go by mixedCase on Sunday May 16, 2021 @11:51PM (#27179898)
At that point why not use something F# or Rust? Both can provide comparable or better runtimes, very decent ecosystems, and they are already much better languages.
Re:Half a million lines of Go by cdogl on Monday May 17, 2021 @12:29AM (#27180053)
Because Go as an ecosystem has some really attractive properties that few other languages offer in the same combination: portability, stability and a strong compatibility guarantee, quick onboarding for new learners, a robust and scaleable runtime with GC that rarely gets in your way, minuscule startup footprint, reasonable direct control of memory layout when you really need it, a fairly large developer base and corporate backing/funding that's not going away any time soon
Re:Half a million lines of Go by mixedCase on Monday May 17, 2021 @10:42AM (#27183991)
So I have to repeat the question: why not F# or Rust then?

None of that is too uncommon, with the notable exception that Go is better at the "quick onboarding" part since it goes out of the way offering no new concepts or syntax that have to be learnt; something that the comment I was replying to would like to change by introducing Optionals and Functors.