Wednesday, August 17, 2016

Operator overloading is an enemy of functional programming

Trying to use curry function against lodash´s groupBy, was getting TypeScript compilation errors at the build server. Figured out, that the reason is that curry will pick the incorrect overload of the function out of 6 available. Not the first time I am having problem with overloads... I think a good functional language should not have function overload as its feature.