4 ms·
Agreed. My first thought was that you can do the exact same thing as the Haskell code in C++ using <algorithm> from the STL. The biggest advantage I find to fu
by DubiousPusher 7y ago
Agreed. My first thought was that you can do the exact same thing as the Haskell code in C++ using <algorithm> from the STL.
The biggest advantage I find to functional languages is they force you to write code that's more testable and modular. I now actually write almost every OOP class to have all functionality in private static methods with the public interface methods mostly only doing the work of gathering the args for the private static methods.