← Back to context Comment by fauigerzigerk 15 hours ago No. This cognitive load is conceptual. You can't avoid it by using slightly different syntax. 2 comments fauigerzigerk Reply stingraycharles 9 hours ago 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. Pay08 7 hours ago 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.
stingraycharles 9 hours ago 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. Pay08 7 hours ago 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.
Pay08 7 hours ago 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.
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.
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.