3 ms·
Even if it isn't clear from my post, functional programming has plenty of advantages. I've tried to point out the warts and that was received with mixed feeling
by bitL 9y ago
Even if it isn't clear from my post, functional programming has plenty of advantages. I've tried to point out the warts and that was received with mixed feelings. If you do e.g. large-scale parallel/distributed computing, it's way easier to forgo some imperative optimizations that would yield higher single-core throughput in favor of easier-to-reason-about functional style that can scale with less effort on multiple cores (even if you experience slowdown and waste more memory). It's also much simpler to do formal verification on functional programs, at least up to certain point where NP-hard kicks in. But I really dislike using functional programming everywhere and am going firmly against the current vogue to preach functional programming is exclusively beautiful. It's one of the tools we have and it's good to master it.