Re:Go 2 Draft Designs
by platinumrad on Tuesday August 28, 2018 @02:23PM
(#17861389)
At that point why not just add generics...
[ Parent
| on HN ]
Lisp tends to build abstractions, too, and it also does that via macros, which are even harder to mentally parse unless you have a habit.
I'd say that to attain simplicity and clarity, you have to limit the use of abstraction. OTOH there's no way to avoid abstraction at all; programming is all about abstraction. If the means of abstraction are not powerful enough, copy-paste programming and boilerplate proliferate, making code less maintainable and harder to understand.
Re:Go 2 Draft Designs
by platinumrad on Tuesday August 28, 2018 @03:18PM
(#17861976)
In my opinion, implementing these higher order functions with the help of one powerful abstraction (generics) is much simpler than having to deal with a bunch of special cased weaker abstractions (magic map, magic filter, magic reduce, magic...).