3 ms·
>Map filter and reduce are generic tools that can be accomplished through constructs Go already has. They can also be accomplished through constructs Brainfuck
by coldtea 8y ago
>Map filter and reduce are generic tools that can be accomplished through constructs Go already has.
They can also be accomplished through constructs Brainfuck already has. Actually any Turing complete language will do.
>Map filter and reduce are generic tools that can be accomplished through constructs Go already has. The point of Go is that most applications do not need a high level of abstraction, they are bounded problems.
map, filter and reduce are not "high levels of abstraction" any more than for or channels are.
>Therefore framing problems in terms of generic data transformations facilitated by mapping and filtering is drawing attention away from the concrete solution and making the code less clear.
The "concrete solution" being copy pasting code with a different type to filter a list for your types, and using a for loop instead of filter or map? Sounds more like Stockholm Syndrome.