3 ms·
While I agree that Golang might not be the best language to start functional programming in, in my opinion FP is less about leetcode and more about proper abstr
by esarbe 5y ago
While I agree that Golang might not be the best language to start functional programming in, in my opinion FP is less about leetcode and more about proper abstractions and reasoning.
Yes, functional programming exposes you to a lot more concepts that just conditional jumps, but that's fine. Because while a conditional jump might be a simple concept, it's mighty powerful and maybe not constrained enough.
Functional programming gives you more and simpler building blocks to put together. Yes, they have fancy names but most of the time they are almost trivial ("set together with an associative binary operation"). These building blocks interact with each other in very well defined ways that you do not get when trying to compose software in an imperative way.