News for hackers. Stuff that matters.
Re:Go 1.27 Interactive Tour by fauigerzigerk on Sunday August 02, 2026 @04:45AM (#49142426)
No. This cognitive load is conceptual. You can't avoid it by using slightly different syntax.
Re:Go 1.27 Interactive Tour by stingraycharles on Sunday August 02, 2026 @10:52AM (#49145211)
I think the problem is that the Box / Map / any stuff and all the explicit declarations that Go requires makes it harder.

In Haskell as well, you can let the compiler infer a lot of things but that doesn’t appear to be the case with this example.

I’d want the compiler to infer things, but that - I think - is at odds with Go desiring a fast compiler, which I also understand.

Re:Go 1.27 Interactive Tour by Pay08 on Sunday August 02, 2026 @12:29PM (#49145960)
I was about to mention Haskell as well, I feel like it also avoids this sort of cognitive load. Maybe it's something to do with the languages being designed as functional languages instead of languages with functional components.